Inheritance
There are four type of inheritance.
1.
Single inheritance
2.
Multi-level/ harirachal inheritance
3.
Multiple inheritance
4.
Hybrid inheritance
Single inheritanceSingle inheritance is an entity through which drive class access all the functionality of base class. And derived class has also an extra functionality.
Multi-level/harirachal inheritance
Multilevel inheritance is an entity through which derived class access all the functionality of base class. And derived class has also an extra functionality. And that derived class is accessed with another derived class and so on.
Multiple inheritance
There are two or more base class. A derived can class access the functionality of two more base class and derived class has also an extra functionality.
Hybrid inheritance
It is multiple inheritance with any one or mixed that is hybrid.
No comments :
Post a Comment
Ask a Question?