Destructors provide appropriate safeguards, such as automatically calling the base type's destructor.
析构函数提供了适当的保护措施, 如自动调用基类型的析构函数.
互联网
We can directly call an object's destructor to destroy the object.
可以直接调用对象的析构函数来撤销对象.
互联网
To call a destructor, you must reference instance object.
要调用析构器, 必需引用实例对象.
互联网
A destructor is called using an incorrect identifier.
使用错误的标识符调用析构函数.
互联网
The synthesized destructor is run after the class - defined destructor, if there is one, completes.
如果类定义了析构函数, 则在类定义的析构函数结束之后运行合成析构函数.
互联网
Special member functions the copy constructor, the assignment operator, and the destructor define these operations.
特殊成员函数(复制构造函数 、 赋值操作符和析构函数)可用于定义这些操作.
互联网
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.
在类的析构函数中我们将打印计数器变量的最终值.
互联网
本站部分内容源于互联网公开信息及用户分享,旨在提供便捷的汉语查询服务。如内容涉及版权或表述问题,请及时联系我们,我们将第一时间核实处理。
Copyright © 2013-2025 汉文智库 All Rights Reserved 赣ICP备16001187号-2
汉文智库是专业的汉语查询平台,致力于提供权威、准确的汉语词典、成语大全、近义词反义词、古诗词查询等服务。合作与反馈请联系QQ:2830130449。