Why we have used syntax like
void operator=(car &x) for making the deep copy of the copy assignment operator.
I did not understand…can u explain in detailed way?
Copy Assignment operator
@Nisha21 refer this
(https://stackoverflow.com/questions/2685854/why-should-the-copy-constructor-accept-its-parameter-by-reference-in-c)
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.