|The documentation for Kotlin is now located on the new site. This page is kept for historical reasons|
Classes can be nested in other classes:
A class may be marked as inner to be able to access members of outer class. Inner classes carry a reference to an object of an outer class:
See Qualified this expressions to learn about disambiguation of this in inner classes.