December 2017
Intermediate to advanced
468 pages
13h 12m
English
Prototype pattern suggests copying or cloning the existing object and customizing it if needed rather than creating a new object. Choose this pattern when a system should be independent of its products creation, compose, and representation:

We can create a copy of PublicProfile (limited information) or FullProfile at runtime. Those two classes share a few combination of states, so it is good that we design as a prototype.
Let's take a look at its benefits:
The impact is, ...
Read now
Unlock full access