There are two types:
1.Single Inherritance.
2.multiple Inherritance.
There are two types:
1.Single Inherritance.
2.multiple Inherritance.
difference between multiple and multi level inhearitance
ya hope u no some basic of inheritence .but as i got this prob so i would like to explain it inheritence is the main feature of oops can be say that its the advantage of oops as compared to c++ .as u asked about the type then there are 5 types of inheritence in oops
1 single level
2 multilevel
3 multiple
4 hybrid
5 hierachial
yes their are 4 types of inheritance in OOPS Singal, Multiple,Multilevel,Heirarchical. Single Inheritance is a simple one between two classes. If there are 3 classes 2 child and a parent then it is Multiple. If first class is ingherited by second and second by third then it is Multilevel, and last as name suggests it is heirarchical Inheritance.
If you you want anything else thne go ahead
Multiple Inheritance has one parent class , which may have number of child classes.
Multilevel Inheritace may have number of childs and parents also.
if anything else then go ahead
hello dear
there are five types of inheritance.
1.single inheritance
2.multiple inheritance
3.multilevel inheritance
4.hierarchical inheritance
5.hbrid inheritance
only two types,one base,one derived and one base and multiple derived