DEV/DEV3.2/Florent/ControleMachine/1/Main.java
2023-12-15 10:35:50 +01:00

29 lines
874 B
Java

public class Main {
public static void main(String[] args) {
//Création des individu
Individu Titi = new Individu("Titi");
Individu Toto = new Individu("Toto");
//Ajout de l'argent de Titi
Titi.addMonaie(new Billet(Denomination.Dix));
Titi.addMonaie(new Billet(Denomination.Dix));
Titi.addMonaie(new Billet(Denomination.Cinq));
Titi.addMonaie(new Billet(Denomination.Cinq));
Titi.addMonaie(new Billet(Denomination.Cinq));
//Ajout de l'argent de Toto
Toto.addMonaie(new Billet(Denomination.Dix));
Toto.addMonaie(new Billet(Denomination.Un));
Toto.addMonaie(new Billet(Denomination.Un));
Toto.addMonaie(new Billet(Denomination.Un));
System.out.println(Titi.getInt());
System.out.println(Toto.getInt());
}
}