class Point var _x as int var _y as int cue init .init(0, 0) cue init(x as int, y as int) base.init _x = x _y = y def setXY(x as int, y as int) _x = x _y = y pro sum as int get return _x + _y set if value%2 # odd _x = value // 2 _y = _x + 1 else # even _x = _y = value // 2 #assert Sum==value TODO def equals(x as int, y as int) as bool return _x==x and _y==y def main is shared p1 as Point = Point() p2 as Point = Point(3, 4) p1.setXY(1, 2) assert p1.sum==3 p1.sum = 10 assert p1.equals(5, 5) p2.setXY(1, 2) class Person var _name as String cue init(name as String) base.init _name = name pro name as String """ a blank line after a doc string for a property """ get return _name set _name = value.trim