particular
shielded
protected
safe
Answer is Right!
Answer is Wrong!
The correct answer is C. protected.
An access specifier is a keyword that controls the accessibility of a member of a class. The four access specifiers in C++ are public, protected, private, and internal.
- Public members are accessible from any class.
- Protected members are accessible from classes derived from the class in which they are declared.
- Private members are only accessible from the class in which they are declared.
- Internal members are accessible from classes in the same translation unit.
The keyword protected is used to declare a member that is accessible from classes derived from the class in which
The keywords particular, shielded, and safe are not valid access specifiers in C++.