destructor

special method in object-oriented programming which is called deterministically to perform cleanup just before the object is deallocated
Class type of: method Q735151

Facts

7 properties
Subclass of
method[2]
Different from
finalizer, destructuring assignment[7][8]
Notation
tilde[5]
Opposite of
constructor[4]
🏷️ Also known as
en destructor en dtor ar مدمر cs Destruktor fa مخرب fr Destructeur it Distruttore (informatica) ja デストラクタ ko 소멸자 pt destrutor ru Деструктор vi Hàm hủy zh 解構子
🔖 Identifiers · 5
OpenAlex ID
C2777102281
Freebase ID
/m/06zfg1
Microsoft Academic ID (discontinued)
2777102281
ScienceDirect topic ID
computer-science/destructors
Stack Exchange tag
stackoverflow.com

Report an error or request removal Lineage (PROV-JSON)

🔗 Connections
Different from 1
Facet of 1
Has use 1
Notation 1
Opposite of 1
Subclass of 1
← Different from 1
← Facet of 1
← FactGrid item ID 1
Press Enter · cited answer in seconds

Summary

destructor is a special member function[1].

📑 Cite this page

Use these citations when quoting this entity in research, articles, AI prompts, or wherever provenance matters. We aggregate Wikidata + Wikipedia + authoritative open-data sources; the stitched, scored, cross-referenced view is what 4ort.xyz contributes.

APA 4ort.xyz Knowledge Graph. (2026). destructor. Retrieved November 15, 2026, from https://4ort.xyz/entity/destructor
MLA “destructor.” 4ort.xyz Knowledge Graph, 4ort.xyz, 15 Nov. 2026, https://4ort.xyz/entity/destructor.
BibTeX @misc{4ortxyz_destructor_2026, author = {{4ort.xyz Knowledge Graph}}, title = {{destructor}}, year = {2026}, url = {https://4ort.xyz/entity/destructor}, note = {Accessed: 2026-11-15}}
LLM prompt According to 4ort.xyz Knowledge Graph (aggregator of Wikidata, Wikipedia, and authoritative open-data sources): destructor — https://4ort.xyz/entity/destructor (retrieved 2026-11-15)

Canonical URL: https://4ort.xyz/entity/destructor · Last refreshed: