public Burger Create(IIngredientFactory IngredientFactory) { var burger = new PorkBurger(); //// 備料 burger.Bread = IngredientFactory.GetBread(); burger.Veggie = IngredientFactory.GetVeggie(); //// 準備豬肉 burger.Meat = IngredientFactory.GetPork(); return(burger); }