Overriding methods
Parent and child can define overloaded methods
If both apply to a call, the child’s takes precedence
Display.plot_point(p.x,p.y)
method draw(p@ColorPoint) {
Display.set_color(p.color); Display.plot_point(p.x,p.y)
let var p := new_point(3,4);
p := new_color_point(5,6,”red”);