Inheritance in C++
Inheritance In C++ What is Inheritance in C++? The capability of a class to derive properties and characteristics from another class is called Inheritance. Inheritance is one of the most important feature of Object Oriented Programming. Ø Sub Class: The class that inherits properties from another class is called Sub class or Derived Class. Ø Super Class: The class whose properties are inherited by sub class is called Base Class or Super class. Inheritance Example Suppose there are 3 sections in the 12th grade of your school: A, B, and C. The functions that we need to perform in each class are taking the attendance, distributing newspapers to students who subscribed for it, and giving them their final grades. ...