I am experiencing a problem trying to clone an object.
I have defined my own clone() method and I call it
from the methods in the class because I need to create
copies of the object and change them in certain ways.
In the clone method, I call the constructor of the
class, which changes certain variables in the object.
But the the new object is not the only one that ends
up with its variables changed--so does the old object
that instantiates the new object! Any idea why this
happens?