What is the difference between a shallow copy and a deep copy?
Answer Posted / 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 |
Post New Answer View All Answers
What is the most powerful coding language?
In the derived class, which data member of the base class are visible?
Write about all the implicit member functions of a class?
Show the declaration for a static member variable.
What is microsoft c++ redistributable?
How does list r; differs from list r();?
Is c++ low level?
Is c++ a low level language?
Is map ordered c++?
If you push the numbers (in order) 1, 3, and 5 onto a stack, which pops out first a) 1 b) 5 c) 3
When does the c++ compiler create temporary variables?
What are the advantages of c++ over c?
We use library functions in the program, in what form they are provided to the program?
Differentiate between realloc() and free().
What is the word you will use when defining a function in base class to allow this function to be a polimorphic function?