Pretty much literally the same as in Java: ``` cla...
# announcements
o
Pretty much literally the same as in Java:
Copy code
class Singleton {
    companion object {
        private var _instance : Singleton? = null
        fun getInstance() = _instance?: Singleton().apply { _instance = this }
        fun resetInstance() { _instance = null }
    }
}