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