Content deleted Content added
Hacker alok (talk | contribs) Tag: section blanking |
Hacker alok (talk | contribs) No edit summary |
||
Line 1:
{{ProgLangCompare}}
In [[class-based programming|class-based]] [[object-oriented programming]], a '''constructor''' (abbreviation: '''ctor''') is a special type of [[subroutine]] called to [[object creation|create an object]]. It prepares the new object for use, often accepting [[Parameter_(computer_programming)|arguments]] that the constructor uses to set required [[member variable]]s.
|