class Instance private constructor(){
companion object{
val instance:Instance by lazy{Instance()}
}
}
Kotlin 单例模式
最新推荐文章于 2024-08-21 14:13:51 发布
class Instance private constructor(){
companion object{
val instance:Instance by lazy{Instance()}
}
}