I've already covered the state pattern and the strategy pattern, but many people find it difficult to distinguish between the two. I put this tutorial together to help highlight the differences. I also included the bridge pattern because, although it's not a "behavioral pattern", it's usage is very similar and helps show how different these patterns really are.
No comments:
Post a Comment