destructors信息详情

destructors发音

意思翻译

n.垃圾焚毁炉;爆炸装置

相似词语短语

destroying the machines that───摧毁那些

destruct 2───毁灭2

destruccion sinonimo───同义词destruccion

mutually assured destruction───相互确保摧毁

destructor c#───析构函数c#

destroyer───n.驱逐舰;破坏者;起破坏作用的事物

destroyers───n.[船][军]驱逐舰(destroyer复数)

destructive interference───相消(性)干扰,破坏性干扰;[光]相消干涉,[光]相消干扰;破坏性干扰

chimaera star destroyer───奇美拉歼星舰

to destroy───毁灭

双语使用场景

Destructors are often executed during stack unwinding.───栈展开期间会经常执行析构函数。

Thus, the assertions can be used safely in destructors, too.───因此,也可以在析构函数中安全地使用断言。

Managing exceptions in constructors and destructors───管理构造函数和析构函数中的异常

Unlike destructors , it is often the case that something done inside a constructor might throw an exception.───与析构函数不同,构造函数内部所做的事情经常会抛出异常。

Destructors are methods that are called by the runtime execution engine when the object is about to be removed from memory .───析构函数是当对象即将从内存中移除时由运行库执行引擎调用的方法。

The bottom line is that gratuitously declaring all destructors virtual is just as wrong as never declaring them virtual.───基本的一条是无故的声明虚销毁函数同从来不声明为虚销毁函数一样错误。

Classes that serve as base classes in a multiple-inheritance hierarchy ordinarily should define their destructors to be virtual.───在多重继承层次中作为基类的类通常应该将它们的析构函数数定义为虚函数。

Constructors called in the order of base-to-derived. However, the execution of destructors cannot be controlled by the programmer.───构造函数以基类到派生类的顺序被调用。但是,析造函数不受程序员的控制。

Modifier can be used with classes, fields, methods, properties, and events, but cannot be used with destructors or types other than classes.───修饰符可与类、字段、方法、属性和事件一起使用,但不能与析构函数或除类之外的类型一起使用。

英语使用场景

All the windows are automatically unregistered in their destructors.

You should not use structured exception handling in functions that use objects with destructors.

Under a garbage collected environment, destructors to free memory are unnecessary.