Esempio n. 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);
        }
Esempio n. 3
0
        static void Main(string[] args)
        {
            Account A1 = new Saving("Raad", "18-38242-2", 173000.00, 1000);
            Account B1 = new Saving("Saad", "18-38242-1", 73000.00, 1000);

            Account C1 = new OverDraft("Rudmila", "18-3000-3", 3000.00, 1000);
            Account D1 = new OverDraft("fuad", "18-38112-2", 17000.00, 1000);

            A1.Showinfo();
            A1.Deposit(5000);
            B1.Showinfo();
            B1.Deposit(500);
            B1.Withdraw(200);
            B1.Transfer(A1, 20);

            C1.Showinfo();
            C1.Deposit(2000);
            C1.Withdraw(50);
            C1.Transfer(D1, 100);
            A1.Showinfo();
        }