1.

How many derived class can a single base class have?(a) 1(b) 2(c) 3(d) As many are requiredI had been asked this question in semester exam.My question is from Derived Class topic in portion Classes of Object Oriented Programming

Answer»

The correct option is (d) As many are required

Best EXPLANATION: There is no RESTRICTION on how many classes can INHERIT a SINGLE base class. Hence there can be as many DERIVED classes as required in a program from a single base class.



Discussion

No Comment Found

Related InterviewSolutions