mercredi 31 janvier 2018

How to know if object is a singleton in Kotlin?

I would like to define toString()in superclass so, that it detects that class instance is a singleton (an object) and print it's name.

Is it possible in Kotlin?





Aucun commentaire:

Enregistrer un commentaire