Hi Friends can anyone explain me how Java does not support multiple inheritance?
If a class inherits properties of more than one class then it is called multiple inheritance.
In Java, all classes extends Object class implicitly. Condsider a class B which extends class A. Here class B implicitly extends Object class. In this scenario class B inherit the properties of both class A as well as class Object, so this should be considered as multiple inheritance but we consider that java does not support multiple inheritance, why...?
-Som
If a class inherits properties of more than one class then it is called multiple inheritance.
In Java, all classes extends Object class implicitly. Condsider a class B which extends class A. Here class B implicitly extends Object class. In this scenario class B inherit the properties of both class A as well as class Object, so this should be considered as multiple inheritance but we consider that java does not support multiple inheritance, why...?
-Som