A problem for which the Factory Method pattern could be useful is discussed in problem 2.1. A partial implementation of this problem is available from the instructor in package account.To solve the Abstract Factory exercise you should have extended the instructor package, coded an Abstract Factory for the problem, and coded a test harness of the Abstract Factory.
For this exercise,
- Code a Factory Method pattern for the problem
- Code a test harness for your Factory Method implementation, and
- Discuss the significant differences (advantages and drawbacks) between this implementation and the Abstract Factory implementation.