Pergunta de entrevista da empresa Salesforce

what’s the difference between shallow copy & deep copy?

Resposta da entrevista

Sigiloso

23 de mai. de 2016

During my onsite, I didn’t get this one exactly correct. For the record, shallow copy means that a copy of one object will point to the same objects the original object pointed to. A deep copy means that any objects that are connected to the original object being copied will also be copied as well.