Misplaced Pages

Constructor (object-oriented programming)

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.

This is an old revision of this page, as edited by E2mb0t~enwiki (talk | contribs) at 19:14, 16 December 2005 (robot Adding: pt). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Revision as of 19:14, 16 December 2005 by E2mb0t~enwiki (talk | contribs) (robot Adding: pt)(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

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: