whenever we call copy constructor it accepts direct object through reference ,so why is it that when we make change in the variables in the object which is made using copy constructor ,it does not bring about any change in the object from which it is copied,…because if we are passing through reference then definitely the changes are made in the address and that address is of the object from which the new object is been made using copy constructor…
Copy constructor
hello @deck123
can u please share some code snippet.
where u r getting output different than ur expectation. (this will me to understand ur doubt better)
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.