| Super.member references a member in the superclass of the class the current member is executed in. If the member is not found there, the search continues recursively in the superclass of the superclass. |
| Super[class] returns an ordered list of the inheritance chain of class. |
| Super[parameters] in a constructor references the constructor of the parent class. |
This loads the package.
All classes, but Object, have exactly one parent class. The next class automatically inherits from Object by means of $DefaultClass, because no explicit parent is given.
The parent class is listed by means of Super.
A class member may reference a member in its parent class by qualifying it with the keyword Super. The next class references the method f in base. The Override qualifier signals the redefinition of functionality of a parent class.
The result is as desired.
The access to fields or methods in a superclass can skip class levels.
Super is also used to refernce the constructor of a parent class. We must clear child, because automatic regeneration during the redefinition of base would cause inconsistencies. |