示例#1
0
 static void Main(string[] args)
 {
     Product product = new Product()
     {
         ProductName = "Apple Mac Book Pro",
         Price = 21000
     };
     OverseasProxy agent = new OverseasProxy();
     agent.Buy(product);
     Console.ReadLine();
 }
示例#2
0
 private void Purchases(Product product)
 {
     product.Price *= 1.1m;
 }
示例#3
0
 public void Buy(Product product)
 {
     Purchases(product);
     customer.Buy(product);
 }
示例#4
0
 public void Buy(Product product)
 {
     Console.WriteLine("you get it-->" + product.ProductName + " this price is " + product.Price);
 }