Skip to content

Commit d4ee7a7

Browse files
committed
Update README.md
1 parent ab31578 commit d4ee7a7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,3 +250,7 @@ While the implementation is similar they solve different problems. The State pat
250250
**Q: What is the difference between Strategy and Template Method patterns?**
251251

252252
In Template Method the algorithm is chosen at compile time via inheritance. With Strategy pattern the algorithm is chosen at runtime via composition.
253+
254+
**Q: What is the difference between Proxy and Decorator patterns?**
255+
256+
The difference is the intent of the patterns. While Proxy controls access to the object Decorator is used to add responsibilities to the object.

0 commit comments

Comments
 (0)