Protected & private access specifiers difference in inheritance - Inheritance
Q. What is the difference between protected and private access specifiers in inheritance?- Published on 17 Jul 15a. private member is not inheritable and not accessible in derived class.
b. protected member is inheritable and also accessible in derived class.
c. Both are inheritable but private is accessible in the derived class.
d. Both are inheritable but protected is not accessible in the derived class.
ANSWER: protected member is inheritable and also accessible in derived class.