INHERIT |
![]() ![]() ![]() |
The INHERIT statement used in a class module makes the public variables, functions and subroutines of another object visible as part of this object.
Format
INHERIT object
where
The process of searching for a public variable, function or subroutine scans the object referenced in the statement that initiated the scan and then all inherited objects in the order in which they were inherited. Where an inherited object has itself inherited other objects, the scan treats these inherited names as part of the directly inherited object.
See also: Object oriented programming, CLASS, DISINHERIT, OBJECT(), PRIVATE, PUBLIC. |