C++ Programming Questions


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

a. 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.



 
 

    Discussion

Post your comment / Share knowledge