blob: 9f65447f91e09ba07e010f3bb3bcfa75bdfa5ba3 [file] [log] [blame]
package p;
enum B {
ONE {
String getKey() {
return "eis";
}
boolean longerNameThan(B other) {
return false;
}
},
BIG {
String getKey() {
return "riesig";
}
boolean longerNameThan(B other) {
return other != BIG;
}
};
abstract boolean longerNameThan(B a);
}