Question: Two objects, objectA and objectB, are objects in the class Listing. The object objectA is copied to objectB. How many objects exist after the copy,
Two objects, objectA and objectB, are objects in the class Listing. The object objectA is copied to objectB. How many objects exist after the copy, if the copy is performed as:
(a) a deep copy?
(b) a shallow copy?
Step by Step Solution
3.49 Rating (159 Votes )
There are 3 Steps involved in it
To properly answer this question lets first understand the concepts of deep copy and shallow copy 1 ... View full answer
Get step-by-step solutions from verified subject matter experts
