Constructor (object-oriented programming): Difference between revisions

Content deleted Content added
m stubbified
mNo edit summary
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'sIts main purpose is to pre-define the object's data members. andA thereforeproperly initializewritten constructor will leave the environmentobject wherein ita 'valid' operatesstate.
 
==See also==