Behavioral Design Patterns
Patterns that are concerned with communication between objects
- Strategy pattern
- Template method pattern
- Visitor pattern
- Command pattern
- Chain of responsibility pattern
- Observer pattern
- Mediator pattern
- Null object pattern
- Iterator pattern
Strategy Pattern (Policy Pattern)
- What is it?
- In Strategy pattern, behavior (algorithm) can be changed at runtime
- How to do it?
- Create objects which represent various strategies and a context object whose behavior varies as per its strategy object
- When to use it?
- Use it when different behavior (algorithm) needs to be selected during runtime
You must have an active subscription to download PDF,Lab Zip and Recordings of this course topic.Please click the "Subscribe" button or the "Login" button if you already have an account.