diff --git a/glossary/Constructor.md b/glossary/Constructor.md new file mode 100644 index 000000000..d89f15cac --- /dev/null +++ b/glossary/Constructor.md @@ -0,0 +1,4 @@ +### 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.