Sunday, 8 January 2012

Interview question on Constructor

For Training with C# Click Here

Written By:-Isha Malhotra

1.      What is constructor?
2.      Can class have more than one static constructor?
3.      Can we create private constructor of a class?
4.      What is the type of the constructor?
5.      What is difference between constructor and method?
6.      What is constructor chaining?
7.      Can we access non static variable from static constructor?
8.      If we do not give any constructor to class then what will happened?

Plz read the articles to know the ans of all these question.

No comments:

Post a Comment