Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

How can I copy a class?

$
0
0

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!

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>