Copy constructor

here i have update the price of car e which is the copy of car d , why not it get update
And correct the output of car c also, whats problem there

hello @mohitsharmakosi2001

u r updating the object after printing it value.

first update then print to see the changes

Coding Blocks IDE
yes it get update now but
as we can see the values of name model no. and price is not printing for object C.
why?

ss

its printing, u need to scroll down to see it

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.