Generally, the attributes, methods, events,
event handlers, and interfaces that belong to a
parent class are automatically inherited by any class that is created from it. One metaphor that
is used to describe this relationship
is that of the family. Classes that provide the foundation for other classes are called
parent classes, and classes that are derived from parent classes are child classes.
When more than one class is derived from the same parent class, these classes are
related to each other as sibling classes. A descendent of a class has that class as
a parent, either directly or indirectly through a series of parent-child relationships.
In
object-oriented theory, any subclass that is created from a parent class inherits all of
the characteristics of the parent class that it is not specifically prohibited from
inheriting. The chain of parent classes is called an ancestry.
Whenever you create a new class, that class inherits all of the properties (attributes,
methods, events, event handlers, and interfaces) that belong to its parent class.
For example, the Object class is the parent of all classes in SAS/AF software. The
Frame and Widget classes are subclasses of the Object class, and they
inherit all properties of the Object class. Similarly, every class
you use in a frame-based application is a descendent of the Frame,
Object, or Widget class, and thus inherits all the properties that
belong to those classes.