Copying Data – Deep vs Shallow
Copying a value like an integer is easy. When we pass a value to a function/method, or create two variables, we simply copy the value of that integer, or whatever the primitive is. When we have custom data types, now we start to have more detailed questions. For example, do we pass a copy of…