Tuesday, January 20, 2015

Prototype Design Pattern

Type : Creational Design Pattern

Summary : 

Prototype Design pattern is use full when creating an Object is expensive. Prototype is based on the idea of having a blueprint object for creating other object instances by cloning it.
In java Prototype Design pattern is implemented by using cloning an existing object.

Advantages:

If the creation of new object is expensive then the prototype is the way to go to increase the performance.

Participants:

Client : It calls the prototype to 
Prototype : It Provides the clone interface.
Clones: The clones object that are being created




No comments :

Post a Comment