The fact about Java is that it does not support the multiple inheritance.
But I have a question that the base class of all java classes is Object.
Now we have tw
Think of inheritance as an "is a" relation.
In Java we can have
A dog is a mammal is an animal
but not
A dog is a mamal and a four legged animal
mammal and four leggeld animal are at the same level but mammal and animal are at different levels.
The reason we can have the first but not the second is if we know that mammals talk in a certain way, animals talk in a certain way and four legged animals talk in a certain way we can work out the way dogs talk unambiguously in the first case but not the second.