destructor
UK[dɪˈstrʌktə(r)]US[dɪˈstrʌktər]
n
a person or thing that destroys something.
n
(in computing) a function or method that cleans up and deallocates memory for an object that is no longer needed.
Morpheme Breakdown
de
struct
or
de
down, away
struct
build
or
agent suffix
Etymology
the word destructor is a modern english formation, directly assembled from classical latin elements. it is built upon the latin verb destruere, meaning "to tear down, destroy," which itself is a compound of the prefix de- (implying reversal or undoing) and the verb struere (to build, pile up). the literal sense is thus "to un-build" or "to dismantle what has been constructed." the agent suffix -or was then appended to create a noun denoting an entity that performs this action of destruction. while the core latin root struere can be traced back to the pie root stere- meaning "to spread," the modern english word destructor maintains a clear and logical semantic link: an agent that systematically takes apart or demolishes a built structure, a concept extended metaphorically in computing to a function that dismantles data structures.
Analysis
Structure: de (down, away) + struct (build) + or (agent suffix)
de: a latin prefix meaning "down, away, off, reversal, removal."
struct: from latin structus, the past participle stem of struere, meaning "to pile up, build, assemble."
or: a latin agent noun suffix indicating a person or thing that performs an action.
Examples
the old factory was demolished by a controlled explosion from the professional destructor.
in object-oriented programming, the destructor is automatically called when an object goes out of scope.
the terminator was portrayed as an unstoppable destructor, a machine with a single mission.