R

Ram Sharma • 193.86K Points
Coach

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.
  • Correct Answer - Option(D)
  • Views: 183
  • Filed under category C++

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics