Tuesday, February 4, 2014

Daily Interview Question #6: What are the different types of Constructor in C#?

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!

No comments:

Post a Comment

Please give your valuable comments to improve the contents