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