1.

All the derived classes can access only a few members of base class that other derived classes can’t access at same time, in hierarchical inheritance.(a) True(b) FalseI had been asked this question by my college director while I was bunking the class.My question is based upon Hierarchical Inheritance in section Inheritance & its Types of Object Oriented Programming

Answer»

Correct ANSWER is (b) False

The best I can explain: The derived classes have full ACCESS to all the NON private member’s of base class. Every derived class have equal access, none of the class can have SPECIAL access to specific members of base class in general cases.



Discussion

No Comment Found

Related InterviewSolutions