class A { public: int a1; } class B : public A { public: void funB(){a1 = 1 }; } class C : public B { public: void funC(){a1 = 2}; }
: error C2065: 'a1' : undeclared identifier