Meaning of the word constructor in English

What does constructor mean in English? Explore the meaning, pronunciation, and specific usage of this word with Lingoland.

constructor

US /kənˈstrʌk.t̬ɚ/
UK /kənˈstrʌk.t̬ɚ/
"constructor" picture

Noun

1.

a person or company that builds or constructs something, especially a building or road.

Example:
The constructor completed the new bridge ahead of schedule.
We hired a local constructor for our home renovation.
2.

a special method, in object-oriented programming, for creating and initializing an object.

Example:
In Java, the constructor is called when a new object is instantiated.
Every class in C++ has at least one constructor, even if it's implicitly defined.
Learn This Word at Lingoland