Cloning (programming): Difference between revisions

Content deleted Content added
No edit summary
Line 32:
Object copyObj = null;
 
copycopyObj = originaloriginalObj.clone(); // duplicates the object and assigns the new reference to 'copy'
</source>