From ac469b2aa3ed1ebd2dbcd3d364346c46c59f587e Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Sat, 1 Sep 2018 14:26:27 +0300 Subject: [PATCH] Add constructor --- glossary/Constructor.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 glossary/Constructor.md 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.