The synthesized destructor is run after the class-defined destructor, if there is one, completes.
如果类定义了析构函数, 则在类定义的析构函数结束之后运行合成析构函数.
互联网摘选
A base class almost always needs a destructor so that it can make the destructor virtual.
基类几乎总是需要构造函数,从而可以将析构函数设为虚函数.
互联网摘选
When implementing a constructor or destructor in assembler, be sure to preserve the DL register.
当在内嵌汇编程序中实现构造器或析构器时, 应确认保持DL寄存器.
网络文摘精选
特殊成员函数(复制构造函数 、 赋值操作符和析构函数)可用于定义这些操作.
互联网摘选
In both cases, while a constructor or destructor is running, the object is incomplete.
在这两种情况下, 运行构造函数或析构函数的时候, 对象都是不完整的.
互联网摘选
析构函数提供了适当的保护措施, 如自动调用基类型的析构函数.
互联网摘选
In the class destructor we will print out the final value of the counter.
在类的析构函数中我们将打印计数器变量的最终值.
互联网摘选
析构方法按类似的方式命名,除了它的母体名前有一个~(否定号)。
互联网摘选
