Context: |
|
||||
Challenge: |
To copy each object without having to tell its type. |
||||
Skill: |
|||||
Participants: |
|
||||
Signature: |
prototype responds to clone message, returning base object. |
||||
Used by: |
Dynamic Pluggable Factory, selection bars, deep copy of heterogeneous collections. |
||||
Scope: |
General. (Preferably, languages that support deep-copying by default.) |