What does “constructor” mean?
-
noun
A person who builds or repairs things
The constructor fixed the old porch and painted the house.
-
noun
In programming, a special function that creates and initializes an object of a class
The constructor initializes all the fields when a new object is created.
Word forms
constructors
Often used as
- the constructor function
- a constructor method
- the default constructor
Related words and nuances
- builder
- maker
- engineer
- craftsman
- creator
- author