What is shallow copy?

Options
- A shallow copy creates a copy of the dynamically allocated objects too.
- A shallow copy just copies the values of the data as they are.
- A shallow copy creates a copy of the statically allocated objects too
- Both b and c above


CORRECT ANSWER : A shallow copy just copies the values of the data as they are.

Discussion Board
C++ - Shallow Copy

Shallow copy is a bit-wise copy of an object. A new object is created that has an exact copy of the values in the original object. A shallow copy of a collection is a copy of the collection structure, not the elements.

Prajakta Pandit 01-23-2017 06:29 AM

C++

It is excellent test. Can u Specify the answers also.

shital 11-20-2014 10:17 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement