1.

How many types of constructors are available in C#?

Answer»

A constructor in C# is a member function of a class that contains the same NAME as its parent class. This function gets AUTOMATICALLY INVOKED when an object class gets created. A constructor constructs values in data members while initializing the parent class.

There are five types of constructors - Static constructor, Private constructor, COPY constructor, Default constructor, and Parameterized constructor.



Discussion

No Comment Found