explain the concept of constructorconstructor is


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.

 

Request for Solution File

Ask an Expert for Answer!!
DOT NET Programming: explain the concept of constructorconstructor is
Reference No:- TGS0311037

Expected delivery within 24 Hours