JOIN ME BEHIND THE SCENE :
In this video we’ill learn shallow copy and deep copy concept. This concept comes when we deal being pointers in class as data members. So when we copy one object to another object hence both objects actually point to the same memory address, to avoid this we use deep copy.
And to achieve deep copy you have to write copy constructor where we will create separate memory for newly created object.
#ShallowCopy #DeepCopy #Cpp #CppTutorial #CppProgramming #CppNuts