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 |
What does floor mean in c++?
Explain the concept of memory leak?
What is c++ prototype?
Explain about Virtual Function in C++?
Can we define function inside main in c++?
why the size of an empty class is 1
Can we define a constructor as virtual in c++?
Is std :: string immutable?
Explain the scope resolution operator?
Why do we use the using declaration?
How can virtual functions in c++ be implemented?
What are dynamic type checking?