Object oriented
extends
Name the parent class. Inheritance, said out loud.
Syntax
define class <Name> extends <Parent>;
How she behaves
- The child gets the parent's public fields and methods.
- Call the parent constructor with call parent(...);
- Works with abstract parents too. They just refuse to be built themselves.
Example
define class Dog extends Animal;
public:
define constructor(str name);
call parent(name);
end;
end;