Page 130 : we have
Code:
DateTime myTime = new DateTime();
this instruction is instantiating a DateTime object and initializating it via
the default constructor , right ?
And myTime is a reference to this particular object.
But in the second line we have
Code:
myTime = DateTime.Now ;
DateTime.Now is a property but also an object itself
and this is really confusing me : now myTime is a reference to another
object ? And if so , what happened to the first object ?
Thanks a lot for any explanation !