Constructor (computer science) |
In object-oriented programming, a constructor is a method (computer science) which is automatically invoked when the object (computer science) is created. Its main purpose is to pre-define the object s data members. A properly written constructor will leave the object in a valid state.
=See also=
*Destructor (computer science) *Object lifetime *Initializer
=References=
|
|
