Geeks With Blogs
Dheeman Dutta Just Another Blog..... June 2007 Entries
Design patterns - Part 3 - The Prototype Pattern
The Prototype pattern helps us in creating objects from existing ones. There can be any of the two following situations that may occur . CASE 1: Sometimes you may need to create an object of a certain class, but you do not have all the parameters that the constructor of that object need to create that object . CASE 2: You need to capture the present state of an object and create another object. In either of the two above cases , we can clone the existing object to create the new one. Cloning(copying) ......

Posted On Saturday, June 2, 2007 5:52 PM

Copyright © Dheeman Dutta | Powered by: