英文字典中文字典


英文字典中文字典51ZiDian.com



中文字典辞典   英文字典 a   b   c   d   e   f   g   h   i   j   k   l   m   n   o   p   q   r   s   t   u   v   w   x   y   z       







请输入英文单字,中文词皆可:

destructor    
n. 破坏者,爆炸装置,垃圾焚毁炉

破坏者,爆炸装置,垃圾焚毁炉

destructor
解除程式

Destructor \De*struc"tor\, n. [L., from destruere. See
{Destroy}, and cf. {Destroyer}.]
1. A destroyer. [R.]
[1913 Webster]

Fire, the destructor and the artificial death of
things. --Boyle.
[1913 Webster]

2. A furnace or oven for the burning or carbonizing of
refuse; specif. (Sewage Disposal), a furnace (called in
full

{refuse destructor}) in which the more solid constituents of
sewage are burnt. Destructors are often so constructed as
to utilize refuse as fuel.
[Webster 1913 Suppl.]

3. (Computers) in object-oriented programming, a function
which destroys an object which was previously created by a
different function.
[PJC]


请选择你想看的字典辞典:
单词字典翻译
Destructor查看 Destructor 在百度字典中的解释百度英翻中〔查看〕
Destructor查看 Destructor 在Google字典中的解释Google英翻中〔查看〕
Destructor查看 Destructor 在Yahoo字典中的解释Yahoo英翻中〔查看〕





安装中文字典英文字典查询工具!


中文字典英文字典工具:
选择颜色:
输入中英文单字

































































英文字典中文字典相关资料:


  • c++ - When do we need to define destructors? - Stack Overflow
    We know that if a destructor is not provided, the compiler will generate one This means that anything beyond simple cleanup, such as primitive types, will require a destructor In many cases, dynamic allocation or resource acquisition during construction, has a clean up phase For example, dynamically allocated memory may need to be deleted
  • The difference between a destructor and delete - Stack Overflow
    So delete is for managing the dynamic memory, but the destructor is a method of the class itself, which is always called when the object is getting freed from the memory (stack or heap) The destructor is called when freeing the memory for the object, so that if the object itself handles memory, is has time to release that memory That's why
  • Do I need to explicitly call the base virtual destructor?
    Destructors in C++ automatically gets called in the order of their constructions (Derived then Base) only when the Base class destructor is declared virtual If not, then only the base class destructor is invoked at the time of object deletion Example: Without virtual Destructor
  • inheritance - Override Destructor C++ - Stack Overflow
    After executing the body of the destructor and destroying any automatic objects allocated within the body, a destructor for class X calls the destructors for X’s direct members, the destructors for X’s direct base classes and, if X is the type of the most derived class (12 6 2), its destructor calls the destructors for X’s virtual base
  • The difference between a destructor and a finalizer?
    The C# compiler turns a destructor into a finalizer EDIT: To be more verbose; The C# language specification defines a 'destructor' as a C# instance method on a class 'destructor', then, is part of the C# grammar -- destructors are a linguistic object appearing in source code
  • c++ - How do I call the classs destructor? - Stack Overflow
    Instead, the destructor is called when an object is destroyed For an object like ob2 that is a local variable, it is destroyed when it goes out of scope: int main() { date ob2(12); } ob2 ~date() is called here, automatically! If you dynamically allocate an object using new, its destructor is called when the object is destroyed using delete
  • Destructors and the delete () method in C++ - Stack Overflow
    Everything which is on the heap (you call malloc, new, etc) you have to delete explicitly by yourself (which will then result in the destructor being called) Smart pointers like unique_ptr shared_ptr are a modern c++ way to get rid of the manual deletion on heap objects and to make sure they get deleted when the objects are not needed anymore
  • c# - When should I create a destructor? - Stack Overflow
    A destructor may be called on an object after the constructor starts but before the constructor finishes A properly written destructor will not rely on invariants established in the constructor A destructor can "resurrect" an object, making a dead object alive again That's really weird Don't do it





中文字典-英文字典  2005-2009