コード例 #1
0
 public void ItemForSale(IItem item, Booth booth)
 {
     Console.WriteLine("item#" + item.GetItemNumber() + " " + item.GetDescription() + " can now be bought from " +
                       booth.GetDescription());
 }
コード例 #2
0
 public void ItemBought(IItem item, Person customerName, Booth booth)
 {
     Console.WriteLine("\t\t\t" + customerName.GetDescription() + " bought " + "Item#"
                       + item.GetItemNumber() + item.GetDescription() + " from " + booth.GetDescription());
 }