Strategy pattern is a behavioral software design pattern that enables selecting an algorithm at runtime. The strategy pattern
- Defines a family of algorithms,
- Encapsulates each algorithm, and
- Makes the algorithms interchangeable within that family.
Strategy pattern is useful when we have multiple algorithms for specific task and we want our application to be flexible to chose any of the algorithm at runtime for specific task.
This repository contains working project code used in video Course by Packt Publication with title "Learn Design Patterns with Java " authored by "Aseem Jain".
https://www.packtpub.com/application-development/learn-design-patterns-java-9-video
Profile: http://in.linkedin.com/in/premaseem
https://premaseem.wordpress.com/category/computers/design-patterns/
https://www.facebook.com/DesignPatternGuru/
- This code base will work on Java 9 and above versions.
diagrams
folders carry UML diagrams.pattern
folder has code of primary example.patternBonus
folder has code of secondary or bonus example.