Inheritance and Scope When you declare a class, you can specify its immediate ancestor. For example,
type TSomeControl = class(TControl);
declares a class called
TSomeControl
that descends from TControl. A class type automatically inherits all of the
members from its immediate ancestor. Each class can declare new members and can redefine inherited ones, but
a class cannot remove members defined in an ancestor. Hence
TSomeControl
contains all of the members defined
in TControl and in each of TControl's ancestors.
The scope of a member's identifier starts at the point where the member is declared, continues to the end of the
class declaration, and extends over all descendants of the class and the blocks of all methods defined in the class
and its descendants.
133