The Kotlin equivalent of the above code is given below. object Singleton. Yes, that's it for creating a singleton class in Kotlin. Kotlin object ...
確定! 回上一頁