Pergunta de entrevista da empresa Unisys

Q: What is deep and shallow copy?

Resposta da entrevista

Sigiloso

19 de ago. de 2015

Shallow copy is by copy constructor and assignment operator,here only value of pointer is copied not exact memory. deep copy is by copy constructor and overloaded assignment operator,here both memory and value of a pointer is copied..

1