C++
Programming and Technical
Can a copy constructor accept an object of the same class as parameter, instead of reference
of the object?
Read Solution (Total 1)
-
- 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.
- 8 years agoHelpfull: Yes(0) No(0)
C++ Other Question