Below is the list of Constructors available in C#:
1. Default Constructor
2. Parameterized constructor
3. Static Constructor.
By default constructor have “public” as access specifier. A class can have more than one Constructor. In C# “this” keyword is used to access the constructor from another constructor. By default, C# will provide a default constructor if no constructor declared.
Hope this helps!
0 comments :