Copy Constructor related

Jan 29, 2010 at 12:14pm
Hii all

can any buddy explain...

what will happen when reference of an object is passed in a copy constructor?
Last edited on Jan 29, 2010 at 12:49pm
Jan 29, 2010 at 1:07pm
closed account (S6k9GNh0)
cppcpp, though I think this is easily google-able, I was also somewhat confused by this when I first began.

http://cplusplus.com/doc/tutorial/classes/

Basically, the copy constructor is there by default, you don't need to make one yourself to have a copy constructor. But you can make one if you need to modify the data or something similar before it's copied.
Jan 29, 2010 at 1:17pm
Topic archived. No new replies allowed.