What is difference between shallow copy and deep copy? Which is default?
Default version of clone method creates the shallow copy of an object. To create the deep copy of an object, you have to override clone method. Shallow copy is preferred if an object has only primitive fields. Deep copy is preferred if an object has references to other objects as fields.
| Is This Answer Correct ? | 0 Yes | 0 No |
How to construct virtual constructor
6 Answers CIStems Software, Symphony,
Why is main function important?
write the prime no program in c++?
Do the names of parameters have to agree in the prototype, definition, and call to the function?
What is input operator in c++?
How do we balance an AVL Tree in C++?
What is the best book for c++ beginners?
Which software is best for c++ programming?
What is a breakpoint?
What is volatile and pragma? When they are used?
What do you mean by global variables?
Show the declaration for a static member variable.