Explain the concept of constructor?
Constructor is a special method of a class, which is called automatically when the instance of a class is formed. It is created with the same name as the class and initializes all class members, whenever you access the class. The major features of a constructor are as follows:
Constructors do not have any return type
Constructors are always public
It is not important to declare a constructor; it is invoked automatically by .NET Framework.