mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
20 lines
254 B
Kotlin
20 lines
254 B
Kotlin
class Klass {
|
|
companion object {
|
|
val NAME = "Klass"
|
|
}
|
|
}
|
|
|
|
interface Trait {
|
|
companion object {
|
|
val NAME = "Trait"
|
|
}
|
|
}
|
|
|
|
enum class Enoom {
|
|
companion object {
|
|
val NAME = "Enoom"
|
|
}
|
|
}
|
|
|
|
fun box() = Test().test()
|