1.

Which programming language doesn’t support multiple inheritance?(a) C++ and Java(b) C and C++(c) Java and SmallTalk(d) JavaThe question was posed to me in an internship interview.Question is from Inheritance in division Inheritance & its Types of Object Oriented Programming

Answer»

The correct choice is (d) JAVA

The explanation is: Java doesn’t support multiple inheritance. But that feature can be implemented by using the interfaces concept. Multiple inheritance is not supported because of diamond PROBLEM and similar issues.



Discussion

No Comment Found

Related InterviewSolutions