1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| public abstract class Repartition {
public static abstract String getNom(); // The abstract method getNom in type Repartition can only set a visibility modifier, one of public or
protected
public static abstract String getDescription(); // The abstract method getNom in type Repartition can only set a visibility modifier, one of public or
protected
// ...
}
public final class WinnerTakesAll extends Repartition {
public static String getNom() {
return Trad.getMessage("WinnerTakesAll.Name");
}
public static String getDescription() {
return Trad.getMessage("WinnerTakesAll.Desc");
}
// ...
}
public final class RepartitionManuelle extends Repartition {
public static String getNom() {
return Trad.getMessage("ManualRepartition.Name");
}
public static String getDescription() {
return Trad.getMessage("ManualRepartition.Desc");
}
// ...
} |
Partager