#include #include using namespace std; class base { public: void f(int i) const {cout << i << "\n";} //Print in decimal. }; class derived: public base { public: void f(int i) const {base::f(i);} //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 calls base::f. return EXIT_SUCCESS; }