There are two ways to declare static global objects in Kotlin. The first one is called object and creates a singleton.
確定! 回上一頁