示例#1
0
 public void Withdraw(int quantity)
 {
     if (quantity < 4000)
     {
         Console.WriteLine("Supervisor did it, withdraw of " + quantity);
     }
     else
     {
         nextChain.Withdraw(quantity);
     }
 }
示例#2
0
 public void Withdraw(int quantity)
 {
     if (quantity < 1000)
     {
         Console.WriteLine("Clerk did it, withdraw of " + quantity);
     }
     else
     {
         nextChain.Withdraw(quantity);
     }
 }