There is no difference in deadlines.
There may be a difference in debugging:
- This can be conveniently broken after the object is created, but before it is
foo()called - It may be useful to subsequently check the value of a variable.
- , . ( , ,
NullReferenceException, , ).
, - , .