A collection of C++ projects implementing various object-oriented design patterns.
Go to the projects directory (i.e. ./Code/ObserverPattern)
install.sh: compile and buildrun.sh: run the binary
cd ./Code/ObserverPattern
source install.shsource run.shThese patterns provide object creation mechanisms, which increase flexibility and reuse of existing code.
| Theory | Code |
|---|---|
| Factory Pattern | Domino's Pizza |
| Singleton Pattern | Chocolate Factory |
These patterns explain how to assemble objects and classes into larger structures while keeping these structures flexible and efficient.
| Theory | Code |
|---|---|
| Decorator Pattern | Starbucks Coffee |
| Adapter Pattern | Turkey and Duck |
| Facade Pattern | - |
| Composite Pattern | Diner Menu and Sub-Menus |
These patterns are concerned with algorithms and the assignment of responsibilities between objects.
