πŸ“Š C++
Q. 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.
πŸ’¬ Discuss
βœ… Correct Answer: (D) protected data in A and B.

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
226
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
83%
Success Rate