public bool TransferTo(IBankAccount destination, decimal amount) { bool result; result = Withdraw(amount); if (result) destination.PayIn(amount); return result; }
} //返回余额 public bool TransferTo(IBankAccount destination, decimal amount) //银行转账 { if (Withdraw(amount) == true) { destination.PayIn(amount); return(true); } return(false); }
public bool TransferTo(IBankAccount destination, decimal amount) { if (!Withdraw(amount)) { return(false); } destination.PayIn(amount); return(true); }
public bool TransferTo(IBankAccount destination, decimal amount) { bool result; if ((result = Withdraw(amount)) == true) { destination.PayIn(amount); } return(result); }
bool TransferTo(IBankAccount youAccount, decimal amount) { bool result = WithShowMySelf(amount); if (result) { youAccount.PayIn(amount); } return(result); }
public bool TransferTo(IBankAccount destination, decimal amount) { bool result = WithShowMyself(amount); if (result == true) { destination.PayIn(amount); } return(result); }
public bool TransferTo(IBankAccount account, decimal amount) { bool result; result = Withdraw(amount); if (result) { account.PayIn(amount); } return(result); }
// 实现ITransferAccount接口的方法 public bool TransferTo(IBankAccount destination, decimal account) { bool result; result = WithDraw(account); if (result) { destination.PayIn(account); } return(result); }
} //返回余额 //银行转账 public bool TransferTo(IBankAccount destiation, decimal amount) { if (Writhdraw(amount) == true) { destiation.PayIn(amount); return(true); } else { return(false); } }
public bool TransferTo(IBankAccount destination, decimal amount) { if (Withdraw(amount)) { destination.PayIn(amount); return true; } else { return false; } }