コード例 #1
0
 /// <summary>
 /// Transfers money to a recipient account.
 /// </summary>
 /// <param name="sum">amount of money to be transfered to another account. Type of currency - one that recipient operates in.</param>
 /// <param name="recipient">the account to which the sum will be transfered.</param>
 /// <returns>True if transfer succeeded, false otherwise.</returns>
 public bool TransferMoney(float sum, Account recipient)
 {
     return(paymentStrategy.Transfer(sum, recipient, this));
 }