I know multiple Inheritance is not supported in Java.. But I guess since all classes extend Object in a way, multiple inheritance is supported. Any other guesses to this puzzle?
Not sure what makes this a puzzle. Java doesn't support Multiple Inheritance. Even support of multiple implementation of interfaces is not considered multiple inheritance -- as there is no inheritance going on with interfaces.
Anyway... moving this topic to the Java in General forum.
Harsha Ka wrote: since all classes extend Object in a way, multiple inheritance is supported
This is not correct. Multiple inheritance means a class had two (or more) direct parent classes, not class C is a child of class B is a child of class A.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Though all classes extends Object class, it doesn't sub classes have multiple inheritance.
All the classes in the any class hierarchy has only one parent. Therefore there is no multiple inheritance..
Ramesh-X
The two armies met. But instead of battle, they decided to eat some pie and contemplate this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss