Copy constructor with more than one parameter
- by Ravi Gupta
I am learning C++ and was reading copy constructor from the C++: The Complete Reference. The books says that
It is permissible for a copy constructor to have additional parameters as long
as they have default arguments defined for them. However, in all cases the first
parameter must be a reference to the object doing the initializing.
But I am…