|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Cloneable
All classes that wants use the method Object.clone()
must
implements the Cloneable
interface to indicate that it
is legal for that method to make a clone instance of that class.
Invoking Object's clone method on an instance that does not implement the
Cloneable
interface results in the exception
CloneNotSupportedException
being thrown.
Classes that implement this interface can override
Object.clone (which is protected) with a public method that implements
specific rules or can use the native implementation of Java.lang.Object for cloning.
See Object.clone()
for details on overriding this
method.
Note that this interface does not contain the clone method.
CloneNotSupportedException
,
Object.clone()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |