5 lines
257 B
Markdown
5 lines
257 B
Markdown
### Constructor
|
|
|
|
In class-based object-oriented programming, a constructor is a special type of function called to instantiate and object.
|
|
Constructors usually accept arguments that are in turn used to set the necessary member variables for the new object.
|