Shallow Copy and Deep Copy
In general, when we try to copy one object to another object, both objects will share the same memory address. It's about how objects are saved in Stack and Heap.
In general, when we try to copy one object to another object, both objects will share the same memory address. It's about how objects are saved in Stack and Heap.