コード例 #1
0
 public BurgerFacadeBody(Sauce sa, Veggies ve, Cutlet cu, Bun bun, Burger bur)
 {
     this.sauce   = sa;
     this.veggies = ve;
     this.cutlet  = cu;
     this.bun     = bun;
     this.burger  = bur;
 }
コード例 #2
0
        static void Main(string[] args)
        {
            Sauce            sauce   = new Sauce();
            Veggies          veggies = new Veggies();
            Cutlet           cutlet  = new Cutlet();
            Bun              bun     = new Bun();
            Burger           burger  = new Burger();
            BurgerFacadeBody bfp     = new BurgerFacadeBody(sauce, veggies, cutlet, bun, burger);
            Cook             cook    = new Cook();

            cook.CreateBurger(bfp);

            Console.Read();
        }