class A { public: int h=5; }; /////PRIVATE class B:A { public: h=45;//does not name a type B::h=45;//Class B does not name a type int B::h=45;//Extra Qualification B:: on member h k(){h=45;//ok} };