Inheritance in C++
In this tutorial you will learn:
1. What is inheritance?
2. What are different types of inheritance?
3. Why to use inheritance?
4. C++ syntax
What is inheritance?
A form of software reuse in which you create a class that absorbs an existing class’s data and behavior and enhances them with new capabilities. Just like we are the children of our parents and we inherit certain characteristics of our parents, similarly in a program if we have more than one classes in a program , one class may be the base(parent) class and the other class may be the derived(child) class