In Java you could:
public enum Enum { ONE { public String method() { return "1"; } }, TWO { public String method() { return "2"; } }, THREE { public String method() { return "3"; } }; public abstract String method(); }
How do you do this in Scala?
EDIT / Useful links:
2.1m questions
2.1m answers
60 comments
57.0k users