constructor
/kənˈstrʌktər/
noun
- A person or company that builds things, especially large structures like buildings, bridges, or roads.
- She works as a constructor for a major engineering firm.
- The bridge constructor used special materials to withstand earthquakes.
- The constructor finished the new school ahead of schedule.
- In programming, a special method that is automatically called when an object of a class is created, used to set initial values.
- The programmer wrote a constructor that sets the default name to 'Unknown'.
- Every class in Java can have a constructor to initialize its variables.
- If you don't define a constructor, the compiler provides a default one.
Synonyms
Antonyms