Misplaced Pages

Constructor (object-oriented programming): Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
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 . It's main purpose is to pre-define the object's data members and therefore initialize the environment where it operates. 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

Stub icon

This computing article is a stub. You can help Misplaced Pages by expanding it.

Categories: