Strategy Pattern
The Strategy pattern is a behavioral design pattern that defines a family of interchangeable algorithms, encapsulates each one behind a common interface, and lets a client select or swap the algorithm at runtime.
9 resources across 4 libraries
Glossary Terms(4)
Observer Pattern
The Observer pattern is a behavioral design pattern in which an object (the subject) maintains a list of dependents (observers) and automatically notifies them…
Strategy Pattern
The Strategy pattern is a behavioral design pattern that defines a family of interchangeable algorithms, encapsulates each one behind a common interface, and l…
Decorator Pattern
The Decorator pattern is a structural design pattern that attaches additional responsibilities to an object dynamically by wrapping it in one or more decorator…
Command Pattern
The Command pattern is a behavioral design pattern that encapsulates a request or action as a standalone object, allowing it to be parameterized, queued, logge…
Study Notes(1)
Cheat Sheets(1)
Interview Questions(3)
What is the Strategy Pattern?
The Strategy pattern defines a family of interchangeable algorithms, encapsulates each one behind a common interface, and lets the client swap the algorithm at…
What is Delegation in OOP?
Delegation is an object-oriented technique where an object, instead of implementing a behavior itself, hands the request off to a second helper object that act…
Strategy vs State Pattern
The Strategy pattern lets a client choose an interchangeable algorithm at will and injects it into a context, while the State pattern lets an object change its…