

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Task 3.1: Write an example class in C++ where copy constructor is needed. #include
str1.print(); // what is printed? str2.print(); str2.change("GeeksforGeeks"); str1.print(); // what is printed now? str2.print(); return 0; }