FractionalRadix commented on Kotlin in Action, Second Edition by Dmitry Jemerov
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).