Beispiel #1
0
        static void Main(string[] args)
        {
            Account r = new SpecialSaving("Raad", "99999999", 50, 15);
            Account s = new SpecialSaving("Saad", "7777777", 500, 300);

            Account ru = new OverDraft("Rudmila", "5555555", 100, 50);
            Account sh = new OverDraft("Shahed", "999555777", 10000, 5000);

            r.ShowInfo();
            r.Deposit(500);
            r.Withdraw(200);
            r.Transfer(s, 20);

            ru.ShowInfo();
            ru.Deposit(2000);
            ru.Withdraw(50);
            ru.Transfer(sh, 100);
        }
        static void Main(string[] args)
        {
            Account A = new SpecialSaving("Bishowjit", "000111222", 20, 10);
            Account B = new SpecialSaving("Rahim", "000111223", 300.50, 200.50);

            Account C = new OverDraft("Karim", "1122334", 20, 5);
            Account D = new OverDraft("Jon", "22233344", 8000.75, 5000);

            A.ShowInfo();
            A.Deposit(5);
            A.Withdraw(20);
            A.Transfer(B, 2);

            Console.WriteLine("*************************************");

            C.ShowInfo();
            C.Deposit(15);
            C.Withdraw(15);
            C.Transfer(D, 10);
        }