profile
viewpoint

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.

iluwatar/java-design-patterns

Answer questions AndriyPyzh

Hello! Can I start working on that?

useful!

Related questions

No questions were found.
source:https://uonfu.com/
Github User Rank List