Single Inheritance In single inheritance, subclasses inherit the features of one superclass. In the figure below, the class A serves as a base class for the derived class B .
|
Object
class, which has no superclass, every class has one and only one direct superclass (single inheritance).
In the absence of any other explicit superclass, every class is implicitly a subclass of Object
class.
βIt is the mark of an educated mind to be able to entertain a thought without accepting it.β β Aristotle, Metaphysics |