Constructor (object-oriented programming): Difference between revisions

Content deleted Content added
Visual Basic .NET: 4 space indention as per Microsoft guidelines
Constructor
Tags: Visual edit Mobile edit Mobile web edit
Line 1:
{{refimprove|date=August 2010}}
ConstructedConstr{{ProgLangCompare}}
In [[class-based programming|class-based]] [[object-oriented programming]], a '''constructor''' (abbreviation: '''ctor''') in a [[Class (computer programming)|class]] is a special type of [[subroutine]] called to [[object creation|create an object]]. It prepares the new object for use, often accepting [[argument]]s that the constructor uses to set required [[member variable]]s.