Constructor

/kənˈstrʌktər/ noun

Definition

A special method or function that automatically runs when a new object is created, typically used to initialize the object's properties and set up its initial state. It's like a blueprint's instruction manual for building something.

Etymology

From Latin 'construere' meaning 'to build together,' from 'con-' (together) + 'struere' (to build). The programming term emerged in the 1980s with object-oriented languages, describing methods that 'construct' or build new object instances.

Kelly Says

Think of a constructor like the moment you're born - it's the automatic process that sets up your initial state (name, birthdate, parents) that happens exactly once when you come into existence. Every object needs this 'birth moment' to be properly initialized!

Related Words

Explore More Words

Get the Word Orb API

Complete word intelligence in one call. Free tier — 50 lookups/day.