java - Multiple inheritance while we have Object class -
this question has answer here:
- multiple inheritance , class object 5 answers
multiple inheritance not allowed in java class create has parent class "object". when extend other class, thats multiple inheritance. n't it?? bit confusing.any body can explain please?
multiple inheritance means 1 class has multiple direct parent classes inherits from. long 1 class has 1 direct parent class inherits from, not multiple inheritance.
multiple inheritance:
c ---> b | |-->
single inheritance:
c ---> b --->
Comments
Post a Comment