示例#1
0
 // 将咖啡卖给客人
 public override void Serve(Table table)
 {
     Console.WriteLine("Serving table {0} with flavor {1}", table.Number, flavor);
 }
示例#2
0
 // 将咖啡卖给客人
 public abstract void Serve(Table table);