mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
11 lines
156 B
Kotlin
Vendored
11 lines
156 B
Kotlin
Vendored
class Greeter(var name : String) {
|
|
fun greet() {
|
|
name = name.plus("")
|
|
}
|
|
}
|
|
|
|
fun box() : String {
|
|
Greeter("OK").greet()
|
|
return "OK"
|
|
}
|