Link Details

Link 76825 thumbnail
User 250147 avatar

By geertjan
via java.dzone.com
Published: Apr 21 2008 / 18:45

Last week, in part 1, Andre Mare introduced us to the Builder pattern. Today he continues his series on the "Gang of Four" design patterns.
  • 15
  • 0
  • 1868
  • 655

Comments

Add your comment
User 192671 avatar

ethzero replied ago:

0 votes Vote down Vote up Reply

This looks more like Abstract Factory than Factory Method. My understanding is that, at least in the GoF sense, a Factory Method is a Template Method that creates an object, which means that createBankObject() should only be called from the base class, not directly from BankSystemClient. If that's not correct, could someone explain the essential difference between Factory Method and Abstract Factory?

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.