# 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.

![Cheat sheet: Factory Method: Let Each Carrier Decide](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/92e68c569da04bb3b2379a487992084d.webp)

- Category: Data Structures
- Level: Journeyman
- Tags: Code Smell, Factory Method, OOP, Simple Factory
- Author: Gregor Dzierzon
- Updated: November 17, 2026

Source: https://www.ask-codey.com/cheat-sheets/dp-factory-method-cheat-sheet
