posted 23 years ago
i have tried for a long time to make sense of this thing.
"The class Object does not itself implement the interface Cloneable, so calling the clone method on an object whose class is Object will result in throwing an exception at run time. The clone method is implemented by the class Object as a convenient,
general utility for subclasses that implement the interface Cloneable, possibly also overriding the clone method, in which case the overriding definition can refer to this utility definition by the call:
super.clone()"
My problem is that if the clone is overridden, then why can't we straightaway call clone()?