|
Class Summary |
| CannotCloneAnotherType |
This class will not compile; it just shows that an object
cannot send clone() to another type of object. |
| CannotCloneWithoutCloneable |
This class will compile but not run, since the class does
not implement Cloneable. |
| CloningOk |
This class will compile and run, since the class
implements Cloneable. |
| Course |
This class shows a typical clone() method. |
| Customer |
This class has a properly functioning, public clone()
method. |
| OrderFlawed |
This class has a flawed public clone() method. |
| OrderOk |
This class has an Ok public clone() method. |
| Person |
This type was created by Steve Metsker |
| Professor |
This class just supports the ThisClass
example of a typical clone. |
| ShowCustomer |
Show how to clone a customer. |
| ShowOrderFlawed |
Show the flaw in OrderFlawed. |
| ShowOrderOk |
Show an Ok order, to compare OrderOk with OrderFlawed. |
| Textbook |
This class just supports the ThisClass
example of a typical clone. |