You're now familiar with the key considerations of using properties and fields in Kotlin. Next, we'll use the Kotlin bytecode inspector to get into the following topics:
- Compile-time constants
- Inner classes
- lateinit
You're now familiar with the key considerations of using properties and fields in Kotlin. Next, we'll use the Kotlin bytecode inspector to get into the following topics:
Kotlin is a more object-oriented language than Java because Kotlin doesn't have primitive types, static fields, or static functions. But it's not a secret that these can improve performance. In this section and the next section, we'll look at examples that will help you understand some nuances of Kotlin related to primitive types, static fields, and static functions.
A compile-time constant is a read-only variable that's initialized during...