Beispiel #1
0
 public decimal Withdraw(ICashWihdrawal card, decimal amount)
 {
     return(card.AtmWithdraw(amount));
 }
Beispiel #2
0
 public void PaymentWithdraw(ICashWihdrawal card, string paymentDetails, decimal amount)
 {
     card.AtmWithdraw(amount);
     //Logic for transfering money to another account
 }