Overriden Methods

When an instance method declaration includes the Override modifier, it means that this method overrides implementation of an inherited virtual method of the basic class.

A method overriden by an overriden method declaration is known as a basic implementation of this method. For an overriden method M declared in a class C, the basic implementation is determined by examining each basic class of C, starting with the parent class and continuing in the order of inheritance hierarchy, until an accessible method with the same signature as M is located.

The following conditions must be satisfied to successfully compile an overriden method:

Example

An example of overriding methods is given in the description of virtual methods.

See also:

Methods