Jea*_*let 26
class Foo {
private var _value: Int = 0
def value = _value
}
Run Code Online (Sandbox Code Playgroud)
agi*_*eel 10
class ExplicitProperty {
private[this] var s: Int = _
def size = s
private def size_=(x: Int) {
s = x
}
}
Run Code Online (Sandbox Code Playgroud)