What is the difference between shallow copy and deep copy?
Answer Posted / hrpynux@gmail.com
A shallow copy constructs a new compound object and then (to the extent possible) inserts references into it to the objects found in the original. A deep copy constructs a new compound object and then, recursively, inserts copies into it of the objects found in the original.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are c++ storage classes?
Write about all the implicit member functions of a class?
write a program that withdrawals,deposits,balance check,shows mini statement. (using functions,pointers and arrays)
How do you initialize a string in c++?
What are signs of manipulation?
What does floor mean in c++?
Do you know what are the new features that iso/ansi c++ has added to original c++ specifications?
Does improper inheritance have a potential to wreck a project?
What is the use of pointer in c++ with example?
How can an improvement in the quality of software be done by try/catch/throw?
How const int *ourpointer differs from int const *ourpointer?
What is c++ and its features?
Explain about Garbage Collector?
What does new do in c++?
How the keyword struct is different from the keyword class in c++?