Introduction to Inheritance in c++

A class can access the properties of another class. The class is inherited is called the base class and the inheriting class is called the derived class in C++ inheritance terminology. The derived classes have all the features of the base class and the programmer can choose to add new properties specific to the newly created derived class.

Features of Inheritance
  1. Reusability.
  2. Saves time and effort.
  3. Increases the structure of program which results in greater reliability.
  4. Polymorphism
Need more help? click here


No comments:

Post a Comment