BUT2/DEV/DEV_Madelaine/Wamster_stub/exercice1/Main.java

18 lines
655 B
Java
Raw Normal View History

2023-12-01 14:24:23 +01:00
public class Main{
public static void main(String[] args){
Individu titi = new Individu("titi");
titi.add(new Billet(Denomination.CINQ));
titi.add(new Billet(Denomination.CINQ));
titi.add(new Billet(Denomination.CINQ));
titi.add(new Billet(Denomination.DIX));
titi.add(new Billet(Denomination.DIX));
System.out.println(titi.getNom()+" a : "+titi.getFortune());
Individu toto = new Individu("toto");
toto.add(new Billet(Denomination.UN));
toto.add(new Billet(Denomination.UN));
toto.add(new Billet(Denomination.UN));
toto.add(new Billet(Denomination.DIX));
System.out.println(toto.getNom()+" a : "+toto.getFortune());
}
}