Object oriented
parent
Talk to the parent class from inside a child.
Syntax
call parent(<args>); call parent.<method>(<args>);
How she behaves
- call parent(...) runs the parent constructor. Do this from the child's constructor.
- call parent.Description() reaches the parent's method, even if you overrode it.
- parent is an inside voice, like self, but aimed upstairs.
Example
define constructor(str name);
call parent(name);
end;
define override func Description() returning str;
return call parent.Description() + " is a developer";
end;