This repository contains sample code in C++ based on the book, "Head First Design Patterns", by Freeman & Robson, published by O'Reilly.
The original sample code in Java, which the book's examples are based on, can be found here: https://github.com/bethrobson/Head-First-Design-Patterns.
This code has been developed as part of a Book Club I am running with members of my team.
Each chapter has its own Xcode project and C++ source files that produce a command line executable. Where relevant, comments with IN C++
indicate deviations from the Java sample code, in order to conform to C++ requirements or best practices.
- Strategy Pattern
- Observer Pattern
- Decorator Pattern
- Factory Pattern (under construction)
- Singleton Pattern (under construction, see branch)
- Command Pattern
- Adapter and Facade (not started)
Note: our book club ended before we completed the code for the other chapters, but we hope this was helpful to you.