Next: Extending classes: how and
Up: Extending Classes
Previous: Abstract Classes and methods
Contents
Subsections
- A clone method returns a new object whose initial state is a copy of the current state of the object on which clone was invoked.
- Subsequent changes to the clone will not affect the state of the original.
- Object.clone()
- Empty Cloneable interface.
- Object.clone() method.
- CloneNotSupportedException.
- Support clone.
- Conditionally support clone.
- Allow subclasses to support clone but don't publicly support it.
- Forbid clone.
Next: Extending classes: how and
Up: Extending Classes
Previous: Abstract Classes and methods
Contents