Factory Method: Let Each Carrier Decide
Pass 1's simple factory picked a class from a name; when shipping runs the same steps for every carrier and needs both a label and a pickup that must match, two simple factories with the same if chain drift apart, so each carrier's subclass decides what to create, with methods the shared steps call: the Factory Method pattern.
Updated

- Category
- Data Structures
- Level
- Journeyman
- Tags
- Code Smell, Factory Method, OOP, Simple Factory