Quantcast
Viewing all articles
Browse latest Browse all 2

Implementing Prototype pattern

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 […]Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 2

Trending Articles