Here's my scenario: I have two instances, originalMember and toSaveMember, both belonging to the same class called Person. How can I update all the values from toSaveMember to originalMember, while still retaining the original reference of originalMember? To clarify, I want to achieve the following:
originalMember.name = toSaveMember.name;
originalMember.age = toSaveMember.age;
I am looking for a more automatic solution as opposed to manually updating each field. Do you have any suggestions?
Many thanks!