Revision as of 07:04, 6 November 2005 editLt-wiki-bot (talk | contribs)5,065 editsm robot Adding: lt← Previous edit | Revision as of 19:14, 16 December 2005 edit undoE2mb0t~enwiki (talk | contribs)376 editsm robot Adding: ptNext edit → | ||
Line 13: | Line 13: | ||
] | ] | ||
] |
Revision as of 19:14, 16 December 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. |