I know that Multiple Inheritance is not allowed in Java. I come form a C++ background and there one can inherit from more than one class. I am not sure why in Java it is not allowed.
Please write a brief note for my understanding.
Printable View
I know that Multiple Inheritance is not allowed in Java. I come form a C++ background and there one can inherit from more than one class. I am not sure why in Java it is not allowed.
Please write a brief note for my understanding.
Java attempts to be a true OOP (object oriented) language. Think about it, when implementing inheritance, you say Class1 extends Class2. That in oop means Class1 is Class2, because Class1 takes all of the characteristics of Class2. It wouldn't make since to say Class1 is Class2 AND Class3. Its like saying, that one thing, can in fact be two things.