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:
1.4m articles
1.4m replys
5 comments
57.0k users