1.

How many base classes can a single derived class have in C++?(a) 1(b) 2(c) 3(d) As many as required

Answer» Correct option is (d) As many as required

To explain I would say: This is because C++ allows multiple inheritance. A derived class can have more than one base class and hence can derive all of their features.


Discussion

No Comment Found

Related InterviewSolutions