Computer Science, asked by rykv962, 2 months ago

Multiple inheritance using interface

Answers

Answered by XxSilentAgent47xX
2

Answer:

An interface contains variables and methods like a class but the methods in an interface are abstract by default unlike a class. Multiple inheritance by interface occurs if a class implements multiple interfaces or also if an interface itself extends multiple interfaces.

Explanation:

here is your answers

Answered by bjaat5623
2

Answer:

As we have explained in the inheritance chapter, multiple inheritance is not supported in the case of class because of ambiguity. However, it is supported in case of an interface because there is no ambiguity. It is because its implementation is provided by the implementation class

Explanation:

may it helps you

be happy silent

Similar questions