- While passing parameters, it has support for default parameters and named parameters.
class A(var x: Int, var y: Int)
var a = A(y = 1, x = 3)
Getter/Setters
class A():
private var _x: Int = 0
def x: Int = _x
def x_ = (newValue: Int): Unit =
_x = newValue
end A