1.

If a base class is added with a few new members, its subclass must also be modified.(a) True(b) FalseI have been asked this question during an online exam.My question is based upon Base Class in section Classes of Object Oriented Programming

Answer»

The correct CHOICE is (b) False

Explanation: The base class can be ADDED with new members WITHOUT AFFECTING the subclasses. This is because the subclasses may GET some more features inherited but it won’t use them. But the base class will be able to use the new members as would be required.



Discussion

No Comment Found

Related InterviewSolutions