Fin du TP Heritage

This commit is contained in:
Simoes Lukas
2025-02-06 14:32:11 +01:00
parent 209f320a5a
commit dd0903e9fc
21 changed files with 304 additions and 20 deletions

16
DEV2.1/TP04/Compteur.java Normal file
View File

@@ -0,0 +1,16 @@
public class Compteur {
private int compte;
public Compteur() {
this.compte = 0;
}
public void plusUn() {
this.compte++;
}
public String toString() {
return Integer.toBinaryString(this.compte);
}
}