Update Constructor.md

This commit is contained in:
Angelos Chalaris
2018-09-02 22:17:59 +03:00
committed by GitHub
parent f4426abc39
commit d0fb30dc83

View File

@ -1,4 +1,4 @@
### Constructor ### Constructor
In class-based object-oriented programming, a constructor is a special type of function called to instantiate and object. In class-based object-oriented programming, a constructor is a special type of function called to instantiate an object.
Constructors usually accept arguments that are in turn used to set the necessary member variables for the new object. Constructors often accept arguments that are commonly used to set member properties.