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

257 B

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.