What is Constructor and Destructor Asp Net C#
Q1: What is a Constructor? A special method of the class that is automatically invoked whenever an instance of that class is created. The main use of constructors is to initialize the private data members of the class while creating an instance for the class. If however, there is no constructor inside the class, the […]
Continue Reading