Exemple #1
0
        static void Main(string[] args)
        {
            Account a1 = new FixedAccount("1237", "kajol K", 50000.00, 25, 2015, 5);

            a1.ShowInfo();
            Account a2 = new SpecialSavings("325", "Nahid", 500, 20);

            a2.ShowInfo();
            Account a3 = new Overdraft("007", "Sakib", 500, 20);

            a3.ShowInfo();
        }
        static void Main(string[] args)
        {
            Account rony  = new Savings("Rony", "01", 3000.0f);
            Account ahmed = new Current("Ahmed", "02", 2000f);
            Account md    = new Fixed("MD", "03", 1000f, 2018, 10);

            Account a1 = new SuperSavings("Nusu", "04", 100f);

            a1.Withdraw(80);
            a1.ShowInfo();

            Account overdraft = new Overdraft("Rahman", "05", 1000f, 7000);

            overdraft.Transfer(a1, 5000);
            overdraft.ShowInfo();

            Customer customer = new Customer("Rony Ahmed");
        }