1.

Which among the following defines single level inheritance?(a) One base class derives another class(b) One derived class inherits from one base class(c) One base class inherits from one derived class(d) One derived class derives from another derived classI have been asked this question by my college professor while I was bunking the class.Question is from Single Level Inheritance in section Inheritance & its Types of Object Oriented Programming

Answer»

The CORRECT OPTION is (b) One DERIVED class inherits from one base class

The BEST explanation: If only one base class is used to derive only one subclass, it is known as single level inheritance. The reason of this NAME is that we inherit the base class to one more level and stop the inheritance any further.



Discussion

No Comment Found

Related InterviewSolutions