This repo contains design patterns code implemented.
The code samples here are based off exercises from "Head First: Design Patterns" Book by Eric Freeman and Elisabeth Freeman
- The Strategy Pattern defines a family of alg=orithms, encapsulates each one, and makes them intechangeable.
- Strategy lets the algorithm vary independently from clients that use it.
- The Observer Pattern defines a one-to-many dependency between objects so that when one object changes state, all of its dependents are notified and updated automatically.
- The Decorator Pattern attaches additional responsibilities to an object dynamically.
- Decorators provide a flexible alternative to subclassing for extending functionality.



