This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi, i read about the Prototype pattern, unable to figure out what exactly can be achieved using it. What situation is it used in. All i understood is that the class creating instances is supplied a prototypical instance. Then using cloning it creates instances. What exactly is achieved? What circumstances does it add value to use Prototype pattern for object creation. Please, could you elaborate more on Prototype pattern?
Thanks, Frank it is helpful. The last two messages on the thread first one by you and the second one by another Pattern enthusiast really made sense. So the key is using clone instead of calling complex constructors. The Font selector and textarea example as well as the Pluggable look and feel example are very illustrative. Thanks