1.

Which among the following is false for single level inheritance?(a) There can be more than 2 classes in program to implement single inheritance(b) There can be exactly 2 classes to implement single inheritance in a program(c) There can be more than 2 independent classes involved in single inheritance(d) The derived class must implement all the abstract method if single inheritance is usedThe question was asked in quiz.My question is from Single Level Inheritance in division Inheritance & its Types of Object Oriented Programming

Answer»

Right answer is (C) There can be more than 2 independent classes involved in single inheritance

Best EXPLANATION: If more than 2 independent classes are involved to implement the single level inheritance, it won’t be POSSIBLE as there must be only one child and one parent CLASS and none other related class.



Discussion

No Comment Found

Related InterviewSolutions