Newer
Older
public class MenuCuisson extends Menu {
public void add(Legume l){
LegumeCuisson cuiss = (LegumeCuisson) l;
this.menu.add(cuiss);
}
public void add(Herbe he){
HerbeCuisson cuiss = (HerbeCuisson) he;
this.menu.add(cuiss);
}
public void add(Huile hu){
HuileCuisson cuiss = (HuileCuisson) hu;
this.menu.add(cuiss);
}
public void addAll(Ingredient... ingredients){
for(Ingredient l: ingredients){
this.menu.add(l);
}
}
public Ingredient get(int index){
return this.menu.get(index);
}
}