Is it possible to do something like
Class obj="";
Can use "" to initialize an object? I saw this in an interview, and the interviewer mentioned it is valid.
Update: Thanks for the answers here. For the benefit of future readers, I did some search, this is called copy constructor. Some links like copy constructor parameters could be useful.