MCQOPTIONS
Saved Bookmarks
| 1. |
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. |
| Answer» C. Both are inheritable but private is accessible in the derived class. | |