Content deleted Content added
No edit summary |
Starting point. |
||
Line 1:
In [[object-oriented programming]], a '''constructor''' is a [[method (computer science)|method]] which is automatically invoked when the [[object (computer science)|object]] is created . It's main purpose is to pre-define the object's data members and therefore initialize the environment where it operates.
#REDIRECT [[Object lifetime]]▼
==See also==
*[[Destructor (computer science)|Destructor]]
==References==
* [[Bjarne Stroustrup]]: ''The C++ Programming Language'', Addison-Wesley, ISBN 0-201-70073-5
[[category:Object-oriented programming]]
|