Properties
November 12, 2023Class-and-object
November 12, 2023OOPS
|
Question 52
|
If a data-item is declared as a protected access specifier then it can be accessed :
|
Anywhere in the program
|
|
|
By the base and derived classes
|
|
|
Only by base class
|
|
|
Only by derived class
|
Question 52 Explanation:
If a data item is declared as a protected access specifier then it can be accessed by the base and derived classes.
Correct Answer: B
Question 52 Explanation:
If a data item is declared as a protected access specifier then it can be accessed by the base and derived classes.
