编译时多态:程序运行前发生的事件 —— 函数重载、运算符重载 、模板 ——静态绑定
运行时多态:程序运行时发生的事件 —— 虚函数机制——动态绑定
template<typename T>
void doProcessing(T& w)
{
T temp(w);
temp.go();
}