Can a copy constructor accept an object of the same class as parameter, instead of reference of the object?
By on May 4, 2007 in C/C++ Interview Questions
No. It is specified in the definition of the copy constructor itself. It should generate an error if a programmer specifies a copy constructor with a first argument that is an object and not a reference.


