1.

Which members are inherited but are not accessible in any case?(a) Private(b) Public(c) Protected(d) Both private and protectedI got this question in an online quiz.The doubt is from OOPs Concept in portion Basics Concepts of C++ of C++

Answer»

Correct option is (a) PRIVATE

The best I can EXPLAIN: Private MEMBERS of a CLASS are inherited to the CHILD class but are not accessible from the child class.



Discussion

No Comment Found

Related InterviewSolutions