示例#1
0
 public abstract void VisitCoffee(Coffee coffee);
示例#2
0
 public override void VisitCoffee(Coffee coffee)
 {
     Console.WriteLine("{0} take a cup of {1}", this, coffee);
     coffee.AddSugar();
     coffee.AddMilk();
 }
示例#3
0
 public override void VisitCoffee(Coffee coffee)
 {
     Console.WriteLine("I don not want to drink coffee");
 }