Don't call virtual functions during construction or destruction, because such calls will never go to a more derived class than that of the currently executing constructor or destructor.
转载于:https://www.cnblogs.com/zhtf2014/archive/2009/12/27/1633237.html