1.

Which language does not support all 4 types of inheritance?(a) C++(b) Java(c) Kotlin(d) Small TalkThis question was addressed to me by my school principal while I was bunking the class.I want to ask this question from OOPs Basic Concepts in section OOPs Concept & Features of Object Oriented Programming

Answer»

Right option is (b) Java

The BEST EXPLANATION: Java doesn’t support all 4 types of inheritance. It doesn’t support MULTIPLE inheritance. But the multiple inheritance can be IMPLEMENTED using interfaces in Java.



Discussion

No Comment Found

Related InterviewSolutions