If we delete a pointer to base, then the base-class destructor is run and the members of the base are cleaned up.If the object really is a derived type, then the behavior is undefined.

 
  • 如果删除基类指针,则需要运行基类析构函数并清除基类的成员,如果对象实际是派生类型的,则没有定义该行为。
今日热词
目录 附录 查词历史