阅读背景:

有没有具体的理由使用非虚拟析构函数?

来源:互联网 

As I know, any class that is designated to have subclasses should be declared with virtual destructor, so class instances can be destroyed properly when accessing them through pointers. As I know, any class that is designated to have




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: