Thursday, September 13, 2012

Factory Design Pattern


http://www.oodesign.com/factory-pattern.html
http://www.javaworld.com.tw/jute/post/view?bid=44&id=24993&sty=1&tpg=1&age=0

So, different factory will produce different product with same product interface.
The factory instance need to return the correct product instance.

But in the end, client will control factory or product?


No comments:

Related Posts Plugin for WordPress, Blogger...