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