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

            Console.WriteLine("Large Cup");
            MakeCoffee.Make();
        }
Example #2
0
        public override void Make()
        {
            MakeCoffee makeCoffee = this.MakeCoffee();

            Console.Write("大杯");
            makeCoffee.Making();
        }
        public override void Make()
        {
            MakeCoffee makeCoffee = this.MakeCoffee;

            Console.WriteLine("Medium");
            makeCoffee.Make();
        }
 public Coffee()
 {
     makeCoffee = MakeCoffeeSingleton.Instance();
 }
Example #5
0
 public Coffee()
 {
     _makeCoffee = MakeCoffeeSingleton.Instance();
 }
Example #6
0
 public MakeCoffeeSingleton(MakeCoffee instance)
 {
     _instance = instance;
 }