destructor

英[dɪs'trʌktə] 美[dɪ'strʌktə]
  • n. 破坏者;垃圾焚毁炉
1. A class can only have one destructor.
一个类只能有一个析构函数。

youdao

2. Because it does not have a destructor.
因为它没有一个析构函数。

youdao

3. We also need to add a destructor to the class.
我们还需要添加一个析构函数的类。

youdao

4. Should the exception in the destructor be ignored?
应该忽略析构函数中的异常吗?

youdao

5. Modeling constructor, destructor, and copy constructor.
建模构造函数、分析构造函数,以及拷贝构造函数。

youdao

6. It is possible for the destructor to throw an exception.
这是可能的析构函数抛出一个异常。

youdao

7. Is a destructor called when an object goes out of scope?
是一个析构函数当对象超出作用域称为?

youdao

8. A destructor is not limited only to relinquishing resources.
另外析构函数也不仅仅是用来释放资源。

youdao

9. So let me show you how to remove Malware Destructor 2009, for free.
因此,让我告诉您如何删除恶意软件析构2009年,是免费的。

youdao

10. First, the destructor of the object that's being deleted is called.
首先,调用将要被删除的对象的析构函数。

youdao

11. If a destructor is present, rewrite that to be the class finalizer.
如果存在析构函数,则将其重写为类终结器。

youdao

12. So, different from the first example, we need to implement a destructor.
因此,从第一个例子不同,我们需要实现一个析构函数。

youdao

13. If the destructor is empty, this simply results in a loss of performance.
如果析构函数为空,只会导致性能降低。

youdao

14. Allows defining a destructor function that runs when an object is destroyed.
允许定义一个析构函数当对像崩溃的时候运行。

youdao

15. In Listing 24, the constructor of F is called before F2; likewise for the destructor.
在清单24 中,先调用F的构造函数,然后是F2 的;对于销毁函数也是这样。

youdao

16. The constructor and destructor methods of this object do the necessary setup and cleanup.
这个对象的constructor和destructor方法执行必需的设置和清除工作。

youdao

17. When the destructor is called, the garbage collector is invoked to process the queue.
调用析构函数时,将调用垃圾回收器来处理该队列。

youdao

18. This is mostly a problem with objects that implement a destructor to free non-memory resources.
对于实现了析构函数释放非内存资源的对象来说,这是最常见的问题。

youdao

19. This destructor would have to be called specifically before unsetting the parent class reference.
这种解构器必须在解除父类引用之前进行调用。

youdao

20. A destructor is named in a similar manner, except that it has a ~ (tilde) followed by the parent's name.
析构方法按类似的方式命名,除了它的母体名前有一个~(否定号)。

youdao

21. When the handle scope's destructor is called all handles created within that scope are removed from the stack.
当句柄范围的析构函数被调用时,所有在那个范围中创建的句柄都将被从栈中移除。

youdao

22. A client block is a special type of memory block used by MFC programs for objects that require a destructor.
“客户端块”是由MF c程序用于需要析构函数的对象的特殊类型内存块。

youdao

23. The programmer has no control over when the destructor is called because this is determined by the garbage collector.
程序员无法控制何时调用析构函数,因为这是由垃圾回收器决定的。

youdao

24. No pay attention to this, the situation in which only the object destructor is called can make great deal of troubles.
没有注意到的是,对象的析构函数调用后会引起很大的麻烦。

youdao

25. The root class of an inheritance hierarchy should define a virtual destructor even if the destructor has no work to do.
继承层次关系的根类应该定义虚函数性质的析构函数,即使这个析构函数不做任何的事情。

youdao

26. I would assume they would simply call the base-class destructor, then deallocate the memory (for the entire derived class).
我假设他们将简单地调用基类析构函数,然后释放内存(对于整个派生类)。

youdao

27. The constructor and destructor of the queue class are responsible for the creation and destruction of the mutex, as shown in Listing 1.
队列类的构造函数和析构函数负责创建和销毁互斥锁,见清单1。

youdao

28. Put the functionality you need in separate functions called by the destructor and the copy constructor and the assignment operator.
放在单独的功能调用析构函数和拷贝构造函数和赋值运算符你所需要的功能。

youdao

29. Put the functionality you need in separate functions called by the destructor and the copy constructor and the assignment operator.
放在单独的功能调用析构函数和拷贝构造函数和赋值运算符你所需要的功能。

youdao