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:01, 11 October 2005 edit68.125.168.193 (talk)No edit summary← Previous edit Revision as of 07:04, 6 November 2005 edit undoLt-wiki-bot (talk | contribs)5,065 editsm robot Adding: ltNext edit →
Line 11: Line 11:
] ]
{{compu-stub}} {{compu-stub}}

]

Revision as of 07:04, 6 November 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: