From Javalobby:
While Java 8 is coming, are you sure you know well the enums that were introduced in Java 5? Java enums are still underestimated, and it’s a pity since they are more useful than you might think, they’re not just for your usual enumerated constants! Java enum is polymorphic Java enums are real classes that can have behavior and even data. Let’s represent the Rock-Paper-Scissors game...
Tagged: #java #polymorphism