Esempio n. 1
0
        static void Main(string[] args)
        {
            Account account1;

            account1 = new SavingAccount(101, 1000, "Brijesh");
            account1.deposit(500);
            printDetails(account1);

            account1 = new CurrentAccount(102, 2000, "Akash");
            account1.withdraw(2000);
            printDetails(account1);
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            SavingAccount savingAccount = new SavingAccount(101, "xyz", 5000);

            savingAccount.Deposit(1000);
            savingAccount.WithDraw(5000);
            PrintDetails(savingAccount);

            CurrentAccount currentAccount = new CurrentAccount(102, "abc", 10000);

            currentAccount.Deposit(2000);
            currentAccount.WithDraw(9000);
            PrintDetails(currentAccount);
        }