April 28

What is Inheritance?

Inheritance:-Inheritance means using the Pre-defined Code This is very Main Feature of OOP With the advantage of Inheritance we can use any code that is previously created. With the help of inheritance we uses the code that is previously defined but always Remember, We are only using that code but not changing that code.

The Various Types of Inheritance those are provided by C++ are as followings:

1.                Single Inheritance

2.                Multilevel Inheritance

3.                Multiple Inheritance

4.                Hierarchical Inheritance

5.                Hybrid Inheritance

Continue reading

Category: OOPS | LEAVE A COMMENT