public override void Make()
        {
            MakeCoffee makeCoffee = this.MakeCoffee();

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