Commit 8b9de534 authored by Pronier Julien's avatar Pronier Julien

Test ingrédient

parent b8069c19
Pipeline #2880 canceled with stages
package imt; package imt;
import imt.ingredients.Consigne;
import imt.ingredients.Ingredient; import imt.ingredients.Ingredient;
import imt.ingredients.Legume; import imt.ingredients.Legume;
import imt.ingredients.ViandePoisson; import imt.ingredients.ViandePoisson;
...@@ -12,12 +13,15 @@ public class Application { ...@@ -12,12 +13,15 @@ public class Application {
// System.out.println(padawan); // System.out.println(padawan);
// Ingredient ingredient1 = new Legume(1,"Oignons",120,false); Ingredient ingredient1 = new Legume(1,"Oignons",120,false);
// Ingredient ingredient2 = new Legume(2,"Patate",120,false); Ingredient ingredient2 = new Legume(2,"Patate",120,false);
// Ingredient ingredient3 = new ViandePoisson(3,"Poulet",120,12); Ingredient ingredient3 = new ViandePoisson(3,"Poulet",120,12);
// Ingredient[] ingredients = {ingredient1, ingredient2, ingredient3}; ingredient1.setConsigne(Consigne.CUIT);
// ingredient2.setConsigne(Consigne.CUIT);
// Plat plat = new Plat(1,"Oignon Poulet patate", ingredients); ingredient3.setConsigne(Consigne.CUIT);
// System.out.println(plat); Ingredient[] ingredients = {ingredient1, ingredient2, ingredient3};
Plat plat = new Plat(1,"Oignon Poulet patate", ingredients);
System.out.println(plat);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment