ICloneable

Interface to create objects with binary clones.

Description

The ICloneable interface allows you to create objects with binary clones.

Instance methods

clone

Creates a binary clone of this object.

clone(): Any

  • returns: Any - a clone of this object.

Examples

class MyClass(IMyClass, ICloneable):
    def __init__():
        ...
        pass

    def clone(self):
        clone_obj = self.__init__()
        
        return clone_obj