Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
iluwatar committed Sep 6, 2014
1 parent ab31578 commit d4ee7a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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?**

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.

0 comments on commit d4ee7a7

Please sign in to comment.