Top  Previous  Next


The INHERIT statement used in a class module makes the public variables, functions and subroutines of another object visible as part of this object.





INHERIT object




objectis an object variable returned from a previous use of the OBJECT() function.



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(), OBJINFO(), PRIVATE, PUBLIC.