write a program to demonstrate base class and derived class in C++
Answers
Inheritance in C++
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.
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.
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.