This commit is contained in:
2024-03-18 13:54:22 +01:00
parent eb581c8a31
commit a28bef01d7
69 changed files with 855 additions and 5 deletions

View File

@@ -0,0 +1,16 @@
package compteur;
public class Compteur {
// attribut
private int compte;
// méthode
public void plusUn() {
this.compte++;
}
public Compteur() {
this.compte = 0;
}
// autre méthode
public String toString() {
return Integer.toBinaryString(this.compte);
}
}