Quiz: Cloning Objects
Let's test some concepts of cloning objects.
1
What is the difference between shallow and deep copy?
A)
deep copy clones an object and making changes in one object reflects in the other objects too while shallow copy behaves in the opposite way.
B)
both are different names of the same task.
C)
deep copy creates a separate instance of the object and does not reflect changes in one object to the other.
D)
cloned object using shallow copy is linked to the original object and changes in one object are reflected in the other object.
E)
both c and d.
Question 1 of 40 attempted
Get hands-on with 1400+ tech skills courses.