Update README.md
This commit is contained in:
parent
ab315782ec
commit
d4ee7a7da0
@ -250,3 +250,7 @@ While the implementation is similar they solve different problems. The State pat
|
|||||||
**Q: What is the difference between Strategy and Template Method patterns?**
|
**Q: What is the difference between Strategy and Template Method patterns?**
|
||||||
|
|
||||||
In Template Method the algorithm is chosen at compile time via inheritance. With Strategy pattern the algorithm is chosen at runtime via composition.
|
In Template Method the algorithm is chosen at compile time via inheritance. With Strategy pattern the algorithm is chosen at runtime via composition.
|
||||||
|
|
||||||
|
**Q: What is the difference between Proxy and Decorator patterns?**
|
||||||
|
|
||||||
|
The difference is the intent of the patterns. While Proxy controls access to the object Decorator is used to add responsibilities to the object.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user