In Kotlin, a companion object is an object that is associated with a class and can be accessed using the class name. It's similar to a static method or field in Java.
-
Updated
May 2, 2023 - Kotlin
In Kotlin, a companion object is an object that is associated with a class and can be accessed using the class name. It's similar to a static method or field in Java.
Add a description, image, and links to the kotlin-companion-objects topic page so that developers can more easily learn about it.
To associate your repository with the kotlin-companion-objects topic, visit your repo's landing page and select "manage topics."