Files
30-seconds-of-code/glossary/Constructor.md
Angelos Chalaris ac469b2aa3 Add constructor
2018-09-01 14:26:27 +03:00

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.