CS202 6- ‹#›
Copy Constructors
n
Using the reference operator instead, we change the
function to be: (the function
call
remains the same)
n
n
name &function(name &obj) {
n
cout <<obj.get_name() <<endl;
n
return (obj);
n
}
n