Revision as of 18:20, 17 July 2005 editMecanismo (talk | contribs)Extended confirmed users3,744 editsm stubbified← Previous edit | Revision as of 13:33, 18 August 2005 edit undoJogloran (talk | contribs)Extended confirmed users2,008 editsmNo edit summaryNext edit → | ||
Line 1: | Line 1: | ||
In ], a '''constructor''' is a ] which is automatically invoked when the ] is created |
In ], a '''constructor''' is a ] which is automatically invoked when the ] 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== | ==See also== |
Revision as of 13:33, 18 August 2005
In object-oriented programming, a constructor is a method which is automatically invoked when the object 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
References
- Bjarne Stroustrup: The C++ Programming Language, Addison-Wesley, ISBN 0-201-70073-5
This computing article is a stub. You can help Misplaced Pages by expanding it. |