1.

Which programming language restricts the use of multiple inheritance?(a) C++(b) PHP(c) SmallTalk(d) JavaI had been asked this question at a job interview.My doubt is from Multiple Inheritance topic in division Inheritance & its Types of Object Oriented Programming

Answer»

Correct option is (d) JAVA

For explanation: Java doesn’t allow use of multiple inheritance with classes. But this can be done by USING the interfaces. This is more SECURE and unambiguous way to IMPLEMENT multiple inheritance.



Discussion

No Comment Found

Related InterviewSolutions