Line 48
At around 9:30 , executing the same code is giving error
Hi kunal
Unlike shown in video, a copy constructor has the following general function prototype:
ClassName (const ClassName &old_obj) so you need to change accordingly.
also you need to use strcpy(name,X.name)
Hope it helps:)
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.