Back
Dmitry Jemerov, Svetlana Isakova, Roman Elizarov, Sebastian Aigner: Kotlin in Action, Second Edition (2024, Manning Publications Co. LLC) No rating

Chapter 4 is about objects, classes, and interfaces. Objects are the main difference with Java: an object is like a single instance of an anonymous class. Another notable difference is that Kotlin makes a distinction between a nested class and an inner class. Nested classes don't have access to the outer class, inner classes do. (To make an inner class, simply add the keyword inner to your nested class).