In class-based object-oriented programming, a constructor (abbreviation: ctor) is a special type of subroutine called to create an object. ... A properly written constructor leaves the resulting object in a valid state. Immutable objects must be initialized in a constructor.
Answers & Comments
Answer:
In class-based object-oriented programming, a constructor (abbreviation: ctor) is a special type of subroutine called to create an object. ... A properly written constructor leaves the resulting object in a valid state. Immutable objects must be initialized in a constructor.
HOPE IT HELP