September 2020
Intermediate to advanced
653 pages
10h 37m
English
This chapter covers the Prototype pattern.
Specify the kinds of objects to create using a prototypical instance, and create new objects by copying this prototype.
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 ...
Read now
Unlock full access