Multiple inheritance is not supported in java

In this type of inheritance one class inherits from more than one parent class.

Multiple inheritance are not allowed here, in that case, it causes ambiguity error. If we create an object in C, the methods and properties of A and B will inherit in C class. So when we call it will get confused, if it will call a method of class A or B, it is called an ambiguity error.

Leave a Comment

Your email address will not be published. Required fields are marked *