mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
8 lines
119 B
Kotlin
8 lines
119 B
Kotlin
class Flower() {
|
|
|
|
var minusOne: Int = 1
|
|
get() = $minusOne + 1
|
|
set(n: Int) { $minusOne = n - 1 }
|
|
|
|
}
|