This chapter covers the Prototype pattern.
GoF Definition
Specify the kinds of objects to create using a prototypical instance, and create new objects by copying this prototype.
Concept
This pattern provides an alternative method for instantiating new objects by copying or cloning an instance of an existing object. You can avoid the expense of creating a new instance using this concept.
Real-Life Example
Suppose you have a master copy of a valuable document. You need to incorporate some change into it to analyze the effect of the change. In this case, you can make a photocopy ...