Thursday, August 11, 2011

What is the use of a constructor in C#?

Hi, as far as i know constructors are user do initialize values for member variables of a class and its invoked when reference to a class is created, is this is the only reason for using constructor? we can directly initialize the variable and why do we have to go for constructor ? Kindly guide me.

0 comments:

Post a Comment