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?
Comments
ethzero replied ago:
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?
Voters For This Link (15)
Voters Against This Link (0)