Destructor

/dɪˈstrʌktər/ noun

A special method that automatically runs when an object is destroyed or goes out of scope, typically used to clean up resources like memory, files, or network connections. It's the opposite of a constructor, handling the 'cleanup' when something is no longer needed.

From Latin 'destruere' meaning 'to tear down,' from 'de-' (down, away) + 'struere' (to build). Introduced in C++ in the 1980s as the counterpart to constructors, handling the 'destruction' or cleanup of objects.

AMአጥፊ
ARمدمر
BNধ্বংসকারী
CAdestructor
CSničitel
DAødelægger
DEZerstörer
ELκαταστροφέας
ESdestructor
FAتخریب‌کننده
FItuhoaja
FRdestructeur
📖 Full word page — etymology, 47 translations, audio 🔑 Get Free API Key — 50 lookups/day 📚 Read the Docs — integrate Word Orb