Class Nesting and Scope Resolution in Kotlin
Kotlin diverges from Java in how it handles types defined within other types. By default, a class declared inside another is statically scoped and holds no impliict reference to its enclosing instance. Explicit modifiers and specific syntax are required to alter this behavior, manage memory referenc...