Home / Programming MCQs / C++ MCQs / Question

Q. What is the difference between protected and private access specifiers in inheritance?

(A) Both are inheritable but private is accessible in the derived class.
(B) private member is not inheritable and not accessible in derived class.
(C) protected member is inheritable and also accessible in derived class.
(D) Both are inheritable but protected is not accessible in the derived class.

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.