Quantcast
Channel: They point the finger at me.. again! » creational
Viewing all articles
Browse latest Browse all 2

Implementing Prototype pattern

$
0
0
Prototype pattern Definition: the pattern is used to create a clone avoiding another creation. We clone the object if the cost of creating the object is expensive than cloning it. Example: participant classes: Vinod.java Rinku.java Prototype.java PrototpyeClient.java (client) Diagram: Prototype.java This is an interface class defining signature for doClone() method. The return type is of […]

Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles



Latest Images