This one shows complete examples where the Kotlin code is compiled to bytecode and decompiled to Java. Enabling a person familiar with Java to very quickly understand Kotlin.
The examples are organized like the examples in the Kotlin Reference.
- Control Flow
- Returns Jumps
- Classes And Inheritance
- Empty Class
- Constructor Param
- Init Order Demo
- Constructor To Attribute
- Init From Constructor
- Constructor With Annotation
- Secondary Constructor
- Default Values
- Instantiation
- Open Closed Data Object
- Inheritance
- Inheritance No Primary Constructor
- Override Method
- Derived Class Initialization Order
- Inner Class
- Overriding Rules
- Data Classes
- Generics
- Nested Classes
- Objects
- Properties
- Sealed Classes
- Functions
- Extensions