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
Do you know what are pure virtual functions?
Define what is constructor?
what is a class? Explain with an example.
What is tellg () in c++?
Difference between struct and class in terms of access modifier.
Define macro.
What are default parameters? How are they evaluated in c++ function?
Is c++ a dying language?
Write a program in c++ to print the numbers from n to n2 except 5 and its multiples
Explain how to initialize a const member data.
What is a driver program?
How java is different from c and c++?
What is searching? Explain linear and binary search.
Explain the different access specifiers for the class member in c++.
Explain the use of this pointer?