Prototype

Prototype decouples the object creation process from the concrete class of the object being created. The Prototype pattern creates new objects by copying an existing object rather than constructing a new one from scratch. Prototype is usef…

1 sources - 3 claims

Prototype decouples the object creation process from the concrete class of the object being created. The Prototype pattern creates new objects by copying an existing object rather than constructing a new one from scratch. Prototype is useful when instantiation is expensive or when the exact class of the object to duplicate may not be known in advance.