initializer

noun
UK /ɪˈnɪʃəlaɪzə/
US /ɪˈnɪʃəlaɪzər/

A thing that sets something up and gets it ready to start.

The initializer filled the new computer program with its starting values.


OTHER MEANINGS

2. In programming, a piece of code that gives a variable its first value.

The initializer assigned zero to every counter in the array.

3. A special method that prepares a new object when it is created.

The class initializer runs automatically whenever you make a new instance.

4. A device or routine that resets equipment to its starting state.

The initializer cleared the memory before the test began.