Exemple #1
0
        static void Main(string[] args)
        {
            Bank bank = new Bank();
            Account acc = new Account(1);
            bank.Withdraw(acc, 100);

            Account saving = new SavingAccount(2);
            bank.Withdraw(saving, 100);
        }
Exemple #2
0
        static void Main(string[] args)
        {
            Bank    bank = new Bank();
            Account acc  = new Account(1);

            bank.Withdraw(acc, 100);

            Account saving = new SavingAccount(2);

            bank.Withdraw(saving, 100);
        }