Important: The information in this document is obsolete and should not be used for new development.
Clone
Returns a copy of this Cyberdog item.
CyberItem Clone ();
- return value
- The copy of the
CyberItem
object.DISCUSSION
This method should return a deep copy of this Cyberdog item; that is, any objects referenced by this Cyberdog item should also be copied. This method should always set the reference count of the copy to 1. This method should return a clone of the Cyberdog item, even if the object has not been initialized by callingICyberItem
.If you call the
Compare
method to compare the cloned Cyberdog item returned by this method with the original Cyberdog item, the result of the comparison should bekCDCompareEqual
.If you subclass
CyberItem
, you must override this method. Your override must not call its inherited method; that is, your override method must implement this method's functionality completely.SEE ALSO
TheCompare
method (page 230).
TheICyberItem
method (page 238).