Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
INHERITED Keyword
◄Keywords► ◄Contents► ◄Index► ◄Back►
Description
The keyword INHERITED allows access to an overridden method in a
parent object. In a hierarchy of objects, a parent and child object
may contain methods with the same name. In this case, the method in
the child must be qualified with the OVERRIDE keyword. With
OVERRIDE in effect, the run-time system directs messages to the
child's method, not to the parent's overridden method.
If access to the parent's method is needed, qualify a message with
INHERITED. When the run-time system encounters a message qualified
with INHERITED, it ignores the child's method and sends the
message to the parent's method.
See also: OBJECT, OVERRIDE