destructors

Objects that annihilate

Destructors are special methods in object-oriented programming that run automatically when an object is destroyed or goes out of scope.

They handle cleanup tasks—releasing memory, closing files, disconnecting from databases.

In C++, a destructor is marked with a tilde before the class name: ~MyClass().

Other languages use different mechanisms: Python has __del__, while languages with garbage collection often rely on finalizers instead.

programming

C++

Object-oriented systems language

finalizer · class · cleanup · dispose · instance · delete · free · pointer · heap · constructor

demolition

wrecking ball

Crane-swung demolition weight

razing · rubble · excavator · bulldozer · explosive charges · clearance · structural collapse · debris · dismantling · controlled demolition

military

warhead

Munition's explosive section

explosive device · detonator · payload · armament · missile · torpedo · incendiary · bunker buster · IED · sabotage

Opposites
creation vs. destruction

destructorscreators

Ones who originate

constructors · builders · makers · founders · fabricators

programming lifecycle methods

destructorsconstructors

Those who assemble structures

initializers · allocators

preservation vs. elimination

destructorspreservers

Things that maintain condition

protectors · conservators · guardians · saviors · defenders

Family

destructor

Familiarity
Top 1,000,000
Profile
Used worldwide · Timeless · Abstract · Rated G