What is the difference between a shallow copy and a deep copy?
Answers were Sorted based on User's Feedback
Answer / nashiinformaticssolutions
• 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 |
Answer / glibwaresoftsolutions
• 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 |
• 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 |
How do I tokenize a string in c++?
How do you print for example the integers 3,2,1,5,4 in a binary tree within the console in format where it looks like an actual binary tree?
Find the second maximum in an array?
What is the difference between method and message?
Explain the difference between c & c++?
In a class only declaration of the function is there but defintion is not there then what is that function?
If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?
show that among any group of five (not necessary consecutive ) integers, there are two with the same remainder when divided by 4.
Why c++ does not have finally?
What is the difference between new() and malloc()?
Explain the benefits of proper inheritance.
Write about the various sections of the executable image?