What is a constructor in C#? | Eklavya Online

What is a constructor in C#?

A constructor is a special method of the class that contains a collection of instructions and gets automatically invoked when an instance of the class is created.