How can I make a copy of a class? I have a class, and before I want it sent to a method I want it to be an entirely new variable so the changes the method makes do not change the original variable. I cannot just create a new object entirely, I need to clone it. Thanks for your help!
How can I make a copy of a class? I have a class, and before I want it sent to a method I want it to be an entirely new variable so the changes the method makes do not change the original variable. I cannot just create a new object entirely, I need to clone it. Thanks for your help!