Prototype Design Pattern

From JholJhapata
Revision as of 17:54, 8 December 2019 by Admin (talk | contribs) (Created page with "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 conce...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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