struct Base { void foo(); }; struct Derived : Base { void foo(); void bar() { Derived::foo(); Base::foo(); } };