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