I have a base class (A) and two derived classes (B,C) (mode of inheritance is public).
I have two values in base class A that needs to be modified by derived classes B,C so i declared their get() and set() under protected in base class.
Now each of the derived class is able to modify the values in base class. But the thing is, if derived class B modifies a private varible in base class A using the inherited set function, the updated value is not coming in derived class C. Upated value appears in both base class A and in the derived class B. But the other derived class C still getting old value.
I know it's hard to resolve it without seeing the code. But, it's a very big code. Just wanted to know if am missing conceptually.