1.

If there is a derived class in a program, how many classes must be in that program?(a) 1(b) 2(c) 3(d) 4I have been asked this question by my school teacher while I was bunking the class.The doubt is from Derived Class in portion Classes of Object Oriented Programming

Answer»

Right CHOICE is (b) 2

The EXPLANATION is: If there is a DERIVED class in a program, there must be at least 2 CLASSES in that program. One is a base class and ANOTHER derived class. Hence at least 2 classes must be there.



Discussion

No Comment Found

Related InterviewSolutions