Пример #1
0
 virtual public void Transfer(Account acc, double amount)
 {
     if (amount <= Balance)
     {
         this.Balance -= amount;
         acc.Balance  += amount;
         Console.WriteLine("Your Account has been debitated by {0} to {1} ({2}) ", amount, acc.AccName, acc.AccNo);
         Transaction t = new Transaction(this, acc, amount, "Business Purporses");
         this.AddTransaction(t);
         acc.AddTransaction(t);
     }
 }