In
computer programming,
initialization is the assignment of an initial value for a
data object or variable. The manner in which initialization is performed depends on
programming language, as well as type, storage class, etc., of an object to be initialized. Programming constructs which perform initialization are typically called
initializers and
initializer lists. Initialization is distinct from (and preceded by)
declaration, although the two can sometimes be conflated in practice. The complement of initialization is
finalization, which is primarily used for objects, but not variables.