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 |
What is compilation?
Write a C++ program to sort digits of all the 4 digit number and display the sorted 4 digit number
Can c++ be faster than c?
Differentiate between declaration and definition in C++?
Is c++ low level?
What is a template in c++?
Does c++ have arraylist?
How do you know that your class needs a virtual destructor?
what is meaning of isa and hsa
What is c++ code?
Can non-public members of another instance of the class be retrieved by the method of the same class?
What is called array?