Prototype Design Pattern

From JholJhapata

Prototype pattern refers to creating duplicate object while keeping performance in mind. It allows us to hide the complexity of making new instances from the client. The concept is to copy an existing object rather than creating a new instance from scratch. The newly copied object may change same properties only if required. This approach saves costly resources and time, especially when the object creation is a heavy process