Interview Questions

Explain constructor.

C# Interview Questions and Answers


(Continued from previous question...)

219. Explain constructor.

Constructor is a method in the class which has the same name as the class (in VB.Net its New()). It initialises the member attributes whenever an instance of the class is created.

(Continued on next question...)

Other Interview Questions