Dodo doc > Types > Nested Types
A type declaration can be nested in another type. In that case the nested type is linked to the enclosing type instance which creates it.
The nested type gets a default value only if it has no constructors. If the nested type has constructors, including a no-argument constructor, it does not have a default value. This is because the constructor needs to know the enclosing object before it can run.
In the nested type, declarations of the enclosing type are declared. The "self" variable is a reference to the current nested type instance.
def SpeedSetting = new Integer