Multilevel Inheritance
In multilevel inheritance, a derived class will be inheriting a base class and as well as the derived class also acts as the base class to other class. In the figure below, the class A serves as a base class for the derived class B , which in turn serves as a base class for the derived class C .
|
public
or protected
methods (like getters and setters) for accessing its private fields, these can also be used by the subclass.