Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Accounts acc1 = new Savings();
            Accounts acc2 = new Savings("X", 5000100, 14000);
            Accounts acc3 = new SpecialSavings("Y", 966544, 15000, 25);

            Accounts acc4 = new Fixed("X", 775844, 6000);

            Accounts       acc5 = new Overdraft(2000);
            SpecialSavings s1   = new SpecialSavings(30);

            Overdraft od = new Overdraft("X", 557234, 11700, 5400);
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            Accounts acc1 = new Savings();
            Accounts acc2 = new Savings("X", 6000200, 22000);
            Accounts acc3 = new SpecialSavings("Y", 885522, 12220, 22);

            Accounts acc4 = new Fixed("X", 885844, 9000);

            Accounts       acc5 = new Overdraft(3000);
            SpecialSavings s1   = new SpecialSavings(40);

            Overdraft od = new Overdraft("X", 667134, 22700, 4500);
        }
Exemplo n.º 3
0
        static void Main(string[] args)
        {
            Accounts acc1 = new Savings();
            Accounts acc2 = new Savings("Hasan", 52606, 63000);
            Accounts acc3 = new SpecialSavings("Jubaer", 57345, 45000, 20);

            Accounts acc4 = new Fixed("Rahman", 52346, 6000);

            Accounts       acc5 = new Overdraft(1500);
            SpecialSavings s1   = new SpecialSavings(30);

            Overdraft od = new Overdraft("Hasan", 52606, 63000, 4500);
        }
Exemplo n.º 4
0
        static void Main(string[] args)
        {
            /*a1.ShowInfo();
            *  a2.ShowInfo();
            *  a1.Withdraw(500);
            *  a1.Transfer(a2, 10000);
            *  Console.WriteLine("*********************");
            *  a1.ShowInfo();
            *  a2.ShowInfo();*/

            Account a1 = new SpecialSavings("Tanvir Ahmed", "145", 50000);
            Account a2 = new Overdraft("Tanvir Ahmed", "146", 50000);
            Account a3 = new SpecialSavings("Tanvir Ahmed Sabbir Ahmed", "147", 5000);
            Account a4 = new Overdraft("Tanvir Ahmed", "148", 100000);


            /*Customer c = new Customer();
             * c.AddAccount(a1, a2, a3, a4);
             * var acc = c.GetAccount("146");
             * acc.Withdraw(49600);
             * //c.ShowAccDetails();*/
        }