Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Account a1 = new SpecialSavings("Shah ", "1111", 10000);
            Account a2 = new SpecialSavings("Raj", "1112", 2000);

            a1.Withdraw(5000);
            a1.ShowInfo();
            a2.Withdraw(700);
            a2.ShowInfo();

            OverDraft o1 = new OverDraft("BB ", "1113", 1000);
            OverDraft o2 = new OverDraft("DAS", "1114", 1500);

            o2.Withdraw(3000);
            o2.ShowInfo();
            o1.Withdraw(4500);
            o1.ShowInfo();
        }
        static void Main(string[] args)
        {
            Account   a1 = new SpecialSaving("Feekra ", "39010", 50000);
            OverDraft o1 = new OverDraft("Feekra ", "39010", 50000);
            Account   a2 = new SpecialSaving("Baishakhi", "183", 5000);
            OverDraft o2 = new OverDraft("Baishakhi", "183", 5000);


            Console.WriteLine("**********************************");
            a1.Withdraw(10000);
            o1.Withdraw(55000);
            a1.ShowInfo();
            o1.ShowInfo();

            Console.WriteLine("**********************************");
            a2.Withdraw(4500);
            o2.Withdraw(4600);
            a2.ShowInfo();
            o2.ShowInfo();
        }