I\'m a little confused as to the mechanics of the copy constructor. Correct me if I\'m wrong:
If a method takes a reference to an object as a parameter, and the class d
No in both the cases. In the first case, reference to that object itself is passed and copy is not created. In the second case you are passing a pointer to the constructor of object
hence no copy is created. So object should have a constructor (not a copy constructor) which is something like object(anotherClass*)