Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Як у Kotlin визначити об'єкт-одинак (singleton)?
object MySingleton {
fun doSomething() {
println("Doing something")
}
val MySingleton = object {
class MySingleton {
companion object {
singleton MySingleton {
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!