Clone System Object

This example shows how to clone a System object™.

Clone System Object

You can define your own clone method, which is useful for copying
objects without saving their state. The default cloneImpl method
copies both a System object™ and its current state. If an object
is locked, the default cloneImpl creates a cloned
object that is also locked. An example of when you may want to write
your own clone method is for cloning objects that handle resources.
These objects cannot allocate resources twice and you would not want
to save their states. To write your clone method, use the saveObject and loadObject methods
to perform the clone within the cloneImpl method.