Pregunta de entrevista de Xoriant

why doesn't java support multiple inheritance?why does it involve use of interfaces?

Respuesta de la entrevista

Anónimo

27 de nov de 2018

Multiple inheritance is a feature of object oriented programming,where a class can inherit properties of more than one parent class.The problem occurs when there exist method with same signature in both super classes and sub classes.On calling the method,the compiler cannot determine which class method to be called and even on calling which class method gets the priority.

1