If a data-item is declared as a protected access specifier then it can be accessed:
A. Anywhere in the program
B. By the base and derived classes
C. Only by base class
D. Only by derived class
Answer:B
If a data-item is declared as a protected access specifier then it can be accessed:
A. Anywhere in the program B. By the base and derived classes C. Only by base class D. Only by derived class