To write code with minimum overhead, you first have to understand the difference between fields and properties. A field is just a variable of the class that holds a value. A property of the class includes the field, getter, and setter. Since Kotlin uses the concept of properties, you should know how to access a field directly without invoking the getter or setter.
Properties
Backing properties
If you need to access a field of a property inside a class in which it's declared, you can use backing properties. If you only need to access a field from the getter or setter of its property, it's enough to use backing fields. However, if you want to access a field somewhere else, you should use backing properties. Let&apos...