コード例 #1
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);
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: Naresh-Barua/Lab
        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);
        }
コード例 #3
0
        static void Main(string[] args)
        {
            Accounts acc1 = new Savings();
            Accounts acc2 = new Savings("Rakib", 10001, 80000);
            Accounts acc3 = new Special_Savings("Raihan", 20001, 50000, 25);

            Accounts acc4 = new Fixed("Hasan", 30001, 6000);

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

            Overdraft od = new Overdraft("Rakib", 10001, 80000, 5000);
        }
コード例 #4
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);
        }
コード例 #5
0
        static void Main(string[] args)
        {
            Account a1 = new SavingAccount("1101", "Saving Account", 5000);

            a1.Withdraw(1500);
            Console.WriteLine();
            a1.ShowInfo();
            Console.WriteLine();
            a1.Withdraw(400);
            Console.WriteLine();
            a1.ShowInfo();
            Console.WriteLine();
            Account a2 = new FixedAccount("1101", "Fixed Account", 5000, 2017, 2019);

            a2.Withdraw(1000);
            Console.WriteLine();
            a2.ShowInfo();
            Console.WriteLine();
            Account a3 = new FixedAccount("1101", "Fixed Account", 2000.00, 2017, 2019);

            a3.Withdraw(1000);
            Console.WriteLine();
            a3.ShowInfo();
            Console.WriteLine();
            Account a4 = new SpecialAccount("1101", "Special Account", 2000.00);

            a4.Withdraw(1900);
            Console.WriteLine();
            a4.ShowInfo();
            Console.WriteLine();
            a4.Withdraw(600);
            Console.WriteLine();
            a4.ShowInfo();
            Console.WriteLine();
            Account a5 = new Overdraft("1101", "Overdraft", 2000.00, 600.00);

            a5.Withdraw(700);
            Console.WriteLine();
            a5.ShowInfo();
            Console.WriteLine();
            a5.Withdraw(400);
            Console.WriteLine();
            a5.ShowInfo();
            Console.WriteLine();
        }
コード例 #6
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();*/
        }