DEV/BUT1/CONTROLE/DEV2.1/Entrainement/SUJETB/EXO2/Yescard.java
2024-03-09 14:19:25 +01:00

14 lines
254 B
Java

public class YesCard extends Deduction {
public YesCard(int numero) {
super(numero);
}
@Override
public int crediter() {
if (this.voir() < 10) {
super.crediter();
}
return this.voir();
}
}