class A{ protected: int var; }; class B{ protected: int var; }; class C : public A, public B {};
What happens here? Do the variab
You can access them in class C by A::var and B::var respectively.
A::var
B::var
Here is a link that covers the same problem.