The second pass
Tom was excited the next morning. He was at the lab early and went straight to work refining the diagram. All totaled, he felt he could use five of the patterns Kitty and Phoebe used in the bicycle project, as follows:
- Creational patterns:
- Builder: Tom can leverage this pattern to handle the complicated object creation needed for a wheelchair class, including handling the composite and bridge implementations
- Singleton: Tom considers the builder class might be made into a singleton to save resource.
- Structural patterns:
- Composite: Tom will create a cost model similar to the one created for the bicycles, but this time it will be integrated directly into the structure of the wheelchair classes instead of being created separately.
- Bridge: As with the bicycles, Tom uses the bridge to vary complexity in the paint jobs and the wheelchair classes independently.
- Behavioral patterns:
- Command: The Command pattern will be used to bundle all the details needed to create...