constructor

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

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

:
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.

:
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.