Skip to main content




In this part you will learn: 1. What is inheritance? 2. Why we need inheritance? 3. Syntax 4. Program 5. Output Inheritance In c++, the concept of inheritance is just like inheritance in family. As we all are child of our parents, we have inherited their many things from them. Similar is the case in programming. We can create inheritance between classes, we can have more than one class in a program, we can make one class the base class, also known as parent class and declare the other one as derived class, or simply child class. There are different inheritance levels

Add new comment

File attachments