Distinguish between shallow copy and deep copy.

Trainee Asked on August 15, 2019 in C++ Language.
Add Comment
1 Answer(s)

Shallow copy does memory dumping bit-by-bit from one object to another. Deep copy is copy field by field from object to another. Deep copy is achieved using copy constructor and or overloading assignment operator.

Supporter Answered on August 15, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.