Originally posted by omar bili:
ok, got it thanks,
but the thing is that my main class does not implement the clone method, so i cant use the super.clone();
maybe ill have to create my own clone method from nothing, and copy all the variables
thanks for the help
Omar
In order to support clone(), you ALWAYS have to create your own clone method. However, you only need to copy the variables manually if you need to perform a "deep clone". If you just need a shallow clone, then
you should call super.clone() as shown. Note that this typically calls the default clone() method from Object.
Layne