chnmaverick wrote:If I change the twoobject inside oneobj1 whether it will affect twoobject inside oneobj2??
Whether it's deep copy or shallow copy it will not change what one object refers to by changing other's same reference. But with shallow copy if you change the state of objects an object refers to then both (i.e: original and cloned) will see the changes.