Ask questionsEnum based strategy
The current strategy example demonstrates the classic pattern with interfaces and implementations, but there is another way using enums. The basic principle is explained here: https://mcvalls.medium.com/how-to-implement-the-strategy-pattern-with-enums-in-java-19eb7168c247
Let's amend our strategy pattern example with the enum-based implementation.
Answer questions iluwatar
Yes @AndriyPyzh, please go ahead!
Related questionsNo questions were found.