Basic Class Access

An expression for basic class access is determined as follows:

base-access:

Inherited   identifier

A basic class access expression is used to access basic class members that are hidden by similarly named members in the current class or structure.

During compilation, a basic class access expression of the Inherited I type is calculated exactly as if it was written (Self as B).I where B is a basic class. Thus, the Inherited I structure corresponds to the Self.I structure, except an instance of the basic class is viewed as Self.

When the basic class access expression addresses the virtual function member, the process of determination of the invoked method is changed during execution.

NOTE. In instance constructors, the Inherited keyword can only be used to invoke the basic class constructor in the header.

See also:

Primary Expressions