//we assume here that the
class Derived is derived from the class Base and that in the class
Base there is the do_something_cool() member function declared
void f(Base * bp) {
bp->do_something_cool();
}
Derived D; Base B;
f(&B); //legal: calls
Base->do_something_cool()
f(&D); //legal too : it
calls Base->do_something_cool()
//if the method is not virtual,
//it calls
Derived->do_something_cool() otherwise