首页 > D > destructor怎么读,destructor什么意思,destructor短语和例句

destructor怎么读,destructor什么意思,destructor短语和例句

收录时间:2022-09-06 09:35:19

destructor怎么读,destructor什么意思

英 [dɪsˈtrʌktə(r)]美 [dɪsˈtrʌktə(r)]
  • n. 垃圾焚毁炉;爆炸装置

destructor 常用句子

1.The programmer has no control over when the destructor is called because this is determined by the garbage collector.

程序员无法控制何时调用析构函数,因为这是由垃圾回收器决定的。

2.The constructor and destructor methods of this object do the necessary setup and cleanup.

这个对象的constructor和destructor方法执行必需的设置和清除工作。

3.This destructor would have to be called specifically before unsetting the parent class reference.

这种解构器必须在解除父类引用之前进行调用。

4.We also need to add a destructor to the class.

我们还需要添加一个析构函数的类。

5.In Listing 24, the constructor of F is called before F2; likewise for the destructor.

在清单24 中,先调用F的构造函数,然后是F2 的;对于销毁函数也是这样。

6.If a destructor is present, rewrite that to be the class finalizer.

如果存在析构函数,则将其重写为类终结器。

7.It is possible for the destructor to throw an exception.

这是可能的析构函数抛出一个异常。

8.Should the exception in the destructor be ignored?

应该忽略析构函数中的异常吗?

9.First, the destructor of the object that's being deleted is called.

首先,调用将要被删除的对象的析构函数。