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.
Clik here to view.
