Answers for "scala getter setter"

1

scala getters and setters

private var _value = .....
def value = _value //getter
def value_= (newVal:Int) = _value = newVal //setter
Posted by: Guest on August-05-2021

Code answers related to "Scala"

Browse Popular Code Answers by Language