diff --git a/src/Compartiment.java b/src/Compartiment.java index 9484f5d..42ebfab 100644 --- a/src/Compartiment.java +++ b/src/Compartiment.java @@ -1,6 +1,10 @@ public class Compartiment{ protected final int QUANTITE_MAX = 1000; - private int quantite_courant = 0; + private int quantite_courant; + + Compartiment(){ + quantite_courant = 0; + } synchronized void remplir(){ quantite_courant = QUANTITE_MAX; diff --git a/src/Employe_bu_buffet.java b/src/Employe_bu_buffet.java deleted file mode 100644 index 718fb36..0000000 --- a/src/Employe_bu_buffet.java +++ /dev/null @@ -1,3 +0,0 @@ -public class Employe_bu_buffet extends Employe{ - -} diff --git a/src/Employe_du_buffet.java b/src/Employe_du_buffet.java new file mode 100644 index 0000000..cfe4624 --- /dev/null +++ b/src/Employe_du_buffet.java @@ -0,0 +1,18 @@ +public class Employe_du_buffet extends Employe{ + + + private Compartiment compPoisson; + private Compartiment compViande; + private Compartiment compLegume; + private Compartiment compNouille; + + Employe_du_buffet(Compartiment compPoisson,Compartiment compViande,Compartiment compLegume,Compartiment compNouille){ + this.compPoisson = compPoisson; + this.compViande = compViande; + this.compLegume = compViande; + this.compNouille = compNouille; + } + + + +} diff --git a/src/Restaurant.java b/src/Restaurant.java index fcd75bb..9217e8c 100644 --- a/src/Restaurant.java +++ b/src/Restaurant.java @@ -8,7 +8,6 @@ public class Restaurant { private Compartiment compLegume = new Compartiment(); private Compartiment compNouille = new Compartiment(); - Employe_bu_buffet employeB = new Employe_bu_buffet(compPoisson,compViande,compLegume,compNouille); - + Employe_du_buffet employeB = new Employe_du_buffet(compPoisson,compViande,compLegume,compNouille); } \ No newline at end of file