From the Java fact that all class in Java have a parent class as Object
. But the same Java says that it doesn\'t support multiple inheritance. But what this code me
Multiple inheritance is having more than 1 direct base class. The example you have given is single inheritance.
For example, if you have 3 classes A
, B
and C
...
public class A extends B
with
public class B extends C
is still just single inheritance.
Multiple inheritance would be
public class A extends B, C