React.js
Angular
Ethical Hacking
Agile
AWS
BlockChain
Cassandra
Cloud
Salesforce
Scaled Agile
TOGAF
DevOps
GIT
Jenkins
Jira
Kibana
Linux
NGINX
Ansible
Artificial Intelligence
in C++ by

Distinguish between shallow copy and deep copy.

Click here to read more about DevOps

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

Madanswer
+1 vote
+1 vote
asked Jul 16, 2019 in C++ by Indian
0 votes
asked Jun 11 in C++ by Robindeniel
+1 vote
asked Jul 16, 2019 in C++ by Indian
...