In Java, an Enum can do the great things that Enums do, but can also have methods (behavior and logic). What advantage does that have over using a class using an enum? Simple ex
Here's a simple example:
enum RoundingMode { UP { public double round(double d) { return Math.ceil(d); } }, DOWN { public double round(double d) { return Math.floor(d); } }; public abstract double round(double d); }