0

Class B inherits publicly class A, and class C inherits publicly class B.

1) My question is can class C make changes to protected data members of class A ?

2) Also I believe that class C can access the protected and public components of class B but can it also access the same of class A ?

To sum it up what is the relationship between the derived class (C) and its indirect base class (A) ? I couldn't find any in depth answers to this online..

Leizer
  • 51
  • 1

0 Answers0