Kotlin introduces the object keyword to handle the creation of anonymous classes and singletons, as well as for companion objects, another Kotlin addition. In this section, we'll take a look at these three concepts.
Kotlin introduces the object keyword to handle the creation of anonymous classes and singletons, as well as for companion objects, another Kotlin addition. In this section, we'll take a look at these three concepts.