...
Question 6989 – UGC-NET June CS 2019 Paper 1
November 29, 2023
OOPS
November 29, 2023
Question 6989 – UGC-NET June CS 2019 Paper 1
November 29, 2023
OOPS
November 29, 2023

OOPS

Question 73
If a class C is derived from class B, which is derived from class A, all through public inheritance, then a class C member function can access
A
Protected and public data only in C and B
B
Protected and public data only in C
C
Private data in A and B
D
Protected data in A and B
Question 73 Explanation: 
The following table shows the access to members permitted by each modifier.
Correct Answer: D
Question 73 Explanation: 
The following table shows the access to members permitted by each modifier.

Leave a Reply

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