I have two objects, objeto1
and objeto2
, and I want to assign all values from objeto1
to objeto2
, but when I use objeto2 = objeto1
and change some value of objeto2
objeto1
is also changed because they have the same address. How to create a new object with the same values in a quick way?