cloneSelf

cloneSelf(bTransient: Boolean): SelfType;

The cloneSelf method of the Object class creates a new instance of the same type as the receiver and copies the attributes of the receiver (including the contents of primitive arrays).

This method does not invoke constructors.

References and MemoryAddress attributes are not copied and are initialized to null in the cloned object.

See also the Object class copySelf, and copySelfAs methods, which invoke constructors, and the cloneSelfAs method.