A special method of the class that is automatically invoked when an instance of the class is created is called a constructor. A constructor is a special method that is used to initialize objects. The advantage of a constructor, is that it is called when an object of a class is created.
When we create instance of a class a default constructor is invoked automatically having the same name as Class . Some key points,
#c#