1.

If members of a super class are public, then________(a) All those will be available in subclasses(b) None of those will be available in subclasses(c) Only data members will be available in subclass(d) Only member functions will be available in subclassI had been asked this question in an online interview.I'd like to ask this question from Public Access Specifier topic in section Access Specifiers of Object Oriented Programming

Answer»

Correct choice is (a) All those will be AVAILABLE in subclasses

Explanation: All the members will be available in subclasses. Though it is not GUARANTEED WHETHER the members will be available in subsequent subclasses from the first SUBCLASS.



Discussion

No Comment Found

Related InterviewSolutions