Statische Variable in Kotlin
companion object {
lateinit var myStaticStr: String
}
abdullah
companion object {
lateinit var myStaticStr: String
}
class Test {
companion object {
var mInteger: Int = 10
fun hello() = println("hello world !")
}
}
fun main(args: Array<String>) {
print(Test.mInteger)
print(Test.hello())
}