Question 6989 – UGC-NET June CS 2019 Paper 1
November 29, 2023OOPS
November 29, 2023OOPS
|
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
|
Protected and public data only in C and B
|
|
|
Protected and public data only in C
|
|
|
Private data in A and B
|
|
|
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.
