Class Hierarchies

  • In all the previous examples, inheritance has been used to add functionality to an existing class.
  • Inheritance can also be used as a part of the original design to a program.
  • Then the base class has the highest level in the class hierarchies.
  • The classes derived from the base class get the second level of hierarchy.
  • The classes derived from the derived classes get the third level and so on.
    Click here for example


Constructors and Destructors << Previous

Next >> Multiple Level of Inheritance

Our aim is to provide information to the knowledge seekers. 


comments powered by Disqus


Footer1