This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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