• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in C Plus Plus by
Q:

Distinguish between shallow copy and deep copy.

1 Answer

0 votes
by

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.

Related questions

+1 vote
0 votes
asked Jun 15, 2020 in C Plus Plus by Robindeniel
0 votes
asked Jun 15, 2020 in C Plus Plus by Robindeniel
...