Properties
November 12, 2023
Class-and-object
November 12, 2023
Properties
November 12, 2023
Class-and-object
November 12, 2023

OOPS

Question 52
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
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.

Leave a Reply

Your email address will not be published. Required fields are marked *