1.

What Is Multiple Inheritance And Does Java Support?

Answer»

If a child class INHERITS the property from MULTIPLE classes is KNOWN as multiple inheritance. Java does not allow to extend multiple classes. The PROBLEM with with multiple inheritance is that if multiple parent classes has a same method name, the at runtime it becomes diffcult for compiler to decide which method to execute from the child class. To overcome this problem it allows to IMPLEMENT multiple Interfaces.

If a child class inherits the property from multiple classes is known as multiple inheritance. Java does not allow to extend multiple classes. The problem with with multiple inheritance is that if multiple parent classes has a same method name, the at runtime it becomes diffcult for compiler to decide which method to execute from the child class. To overcome this problem it allows to implement multiple Interfaces.



Discussion

No Comment Found