reference

when i move q1 does p moves too ?
1
2
  Point q1 = p; /*invokes copy constructor*/
q1.move(1, 1); 
If you make a copy of the mona lisa and then deface that copy, does the original mona lisa get defaced too?

What do you think a copy is? What do you think it means to make a copy?
Last edited on
Topic archived. No new replies allowed.