#include #include using namespace std; class base { public: void f(int i) const {cout << i << "\n";} //Print in decimal. }; class derived: public base { public: using base::f; //a using declaration instead of the call-through void f(char c) const {cout << "'" << c << "'" << "\n";} //Print a character. }; int main() { derived d; d.f('A'); //Calls the derived::f in line 13. d.f(66); //Calls the derived::f in line 12, //which is just another name for base::f. return EXIT_SUCCESS; }