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
The Prototype 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. If you look at the intent of the pattern (the GoF definition), you see that the core idea of this pattern is to create an object that is based on another object. This existing object acts ...