Example Code
class foo
{
// choose method at runtime
virtual void myFunc();
};