static void Main(string[] args) { Account account = new Account(123, "MACSkeptic"); account.Deposit(10); account.Withdraw(20); Console.ReadKey(); }
public static void TransferMoney(Account from, Account to, decimal howMuch) { from.Withdraw(howMuch); to.Deposit(howMuch); }