Prototype Pattern
Prototype(clone) pattern allows copying an object using a prototypical instance
Motivation
Consider an application which requires using the same object numerous times. To create an exact clone of the existing object, you could create a new instance ...
eyuelberga.hashnode.dev2 min read