What is a constructor?

A Constructor is a special method that initializes an object. Its name must be same as class name.