Distinguish between shallow copy and deep copy
Show answer and explanation
A shallow copy duplicates handles while both objects still refer to the same underlying resource; a deep copy creates an independent resource with equivalent value. The correct choice follows the type's ownership and value semantics.
A shallow copy duplicates handles while both objects still refer to the same underlying resource; a deep copy creates an independent resource with equivalent value. The correct choice follows the type's ownership and value semantics.
Connect the conclusion directly to the type, lifetime, ownership, overload-resolution rule, or library contract present in the question. State implementation dependence or a violated precondition explicitly instead of merely guessing output.