Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Account a1 = new CurrentAccount("Shethil", "001", 50000);
            Account a2 = new SavingsAccount("Shethil", "002", 50000);
            Account a3 = new FixedAccount("Shethil", "003", 50000, 9, 2017);

            /* a1.ShowInfo();
             * a2.ShowInfo();
             * a3.ShowInfo();
             *
             * a1.Withdraw(50000);
             * a2.Withdraw(50000);
             * a3.Withdraw(50000);
             *
             * a1.Transfer(a2, 10000);
             *
             * a1.ShowInfo();
             * a2.ShowInfo();
             *
             * Customer c = new Customer();
             * c.AddAccount(a1, a2, a3);
             * var acc = c.GetAccount("001");
             * acc.Withdraw(49600);
             * c.ShowAccDetails(); */


            a1.Withdraw(5000);
            a1.Deposit(1000);
            a1.ShowAllTransaction();
            a1.ShowInfo();

            a2.Transfer(a1, 10000);
            a2.ShowAllTransaction();
            a2.ShowInfo();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            Account a2 = new CurrentAccount("Zubair Ahmed", "146", 50000);

            a2.Withdraw(49600);
            a2.SpecialSavings(500);
            a2.OverDraft(1000);
        }