1.

Which members can never be accessed in derived class from the base class?(a) Private(b) Protected(c) Public(d) All except private

Answer» Right choice is (d) All except private

To explain I would say: There is no restriction for a derived class to access the members of the base class until and unless the members are private. Private member are declared so that those members are not accessible outside the class.


Discussion

No Comment Found

Related InterviewSolutions