In object-oriented programming, a constructor is a special type of function called to create/initialize an object.