Glossary: Software Design Patterns
Factory method
A pattern where a parent class has a method that makes a part and each child overrides it to choose what to make. In `Shipment`, `SaverShipment` makes a USPS carrier.
Glossary: Software Design Patterns
A pattern where a parent class has a method that makes a part and each child overrides it to choose what to make. In `Shipment`, `SaverShipment` makes a USPS carrier.