• 로그인 함 해보끄나?

  • Sarangnamu.net June 17, 2003
    Home Login Profile Study Open Project Q&A Google Code
    코틀린 싱글톤 형태
    class ClsName private constructor() {
        private object Holder { val INSTANCE = ClsName() }
    
        companion object {
            val get: ClsName by lazy { Holder.INSTANCE }
        }
    }

    Comment


    입력하3 1508232444



    Locations of visitors to this page