Glossary: Software Design Patterns in C++
Factory method
A Gang of Four pattern where a parent class has a function that makes a part and each child class overrides it to choose which object to make. `SaverShipment` makes a USPS carrier.
Glossary: Software Design Patterns in C++
A Gang of Four pattern where a parent class has a function that makes a part and each child class overrides it to choose which object to make. `SaverShipment` makes a USPS carrier.