A simple example of the Strategy Pattern using animals.
Running this example is as simple as downloading the .zip, importing the project into your IDE of choice, and running it.
It was built using Eclipse, and although I haven't tested it in other IDEs I can't imagine why it wouldn't run in them.
- Eclipse - The Eclipse IDE
- Strategy Pattern – Head First Design Patterns - A YoutTube video by Christopher Okhravi I found to be extremely helpful for understanding this pattern.
- Christopher Okhravi for his awesome YoutTube video.
- Markus Moser for his awesome site explaining Java Design Patterns and the associated examples on his GitHub site.