Beispiel #1
0
        public override void Make()
        {
            MakeCoffee makeCoffee = this.MakeCoffee();

            Console.Write("大杯");
            makeCoffee.Making();
        }
Beispiel #2
0
 public MakeCoffeeSingleton(MakeCoffee makeCoffee)
 {
     instance = makeCoffee;
 }
 public Coffee()
 {
     this._makeCoffee = MakeCoffeeSingleton.Instance();
 }