ITWissen.info - Tech know how online

destructor

The term destructor is used in object-oriented programming (OOP). It refers to a method that first deletes the attributes of an object and then the object itself. Destructors can also be used to delete, close or release defined resources. For example, to open or delete a connection or a file. Destructors are defined by a tilde character followed by the class name. The opposite mechanism to the destructor is the constructor.

Informationen zum Artikel
Englisch: destructor
Updated at: 16.07.2011
#Words: 71
Links: