1.

Which among the following must be in a base class?(a) Data members(b) Member functions(c) Access specifiers(d) NothingI got this question during an internship interview.Asked question is from Base Class in chapter Classes of Object Oriented Programming

Answer»

Right ANSWER is (d) Nothing

Easy EXPLANATION - EVEN a class that doesn’t have any members can be a BASE class. It is not mandatory to have any member or ATTRIBUTE in base class.



Discussion

No Comment Found

Related InterviewSolutions