This month's meeting will be a source code review of an application utilizing the Factory design pattern.
Design patterns are "simple and elegant solutions to specific problems in object-oriented software design." 1
The Factory Pattern is used to return an instance of a class based on the data provided.
The instantiated class is usually part of a class hierarchy containing a base class and one or more derived classes performing different slightly different tasks.
The application is based on the Factory Pattern chapter found in Java Design Patterns - A Tutorial written by James W. Cooper.
It displays a frame where a person's name can be input in either in "{firstName} {lastName}" or "{lastName}, {firstName}" format, and will be parsed correctly upon clicking the "Compute" button.
|