What is the difference between a shallow copy and a deep copy?
Answer Posted / hr@tgksolutions.com
• Shallow Copy: Copies memory addresses. Changes in one object affect the other.
• Deep Copy: Creates a new copy of the actual data, independent of the original
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can non-public members of another instance of the class be retrieved by the method of the same class?
Explain this pointer?
What are the advantages of c++? Explain
How do I run c++?
What do you mean by inheritance in c++?
What is & in c++ function?
Can we use clrscr in c++?
How do you traverse a btree in backward in-order?
Is c++ faster than c?
What are c++ files?
Is c++ a good first language to learn?
What is the purpose of templates in c++?
What is general form of pure virtual function? Explain?
What is the type of 'this' pointer?
What are references in c++?