Kotlin: object declarations
Example:
object MySingleton {
fun doSomething() {}
}
Kotlin uses object declarations for singletons.
Solution:
MySingleton.doSomething()
Example: Solution:Kotlin: object declarations
Kotlin uses object declarations for singletons.
object MySingleton {
fun doSomething() {}
}
MySingleton.doSomething()