コード例 #1
0
        static void Main(string[] args)
        {
            Account acc1 = new Account("Niloy", "1", 100.0);

            acc1.ShowDetails();

            Account acc2 = new Account("Joy", "2", 80.00);

            acc2.ShowDetails();


            acc1.deposite(200);

            double WithdrawAmount = acc1.withdrawCash(50);

            acc1.transferCash(acc2, WithdrawAmount);


            Bank b = new Bank("Brac Bank", "Uttara");

            b.addAccount(acc1);
            b.addAccount(acc2);
            b.ShowDetail();

            b.deleteAccount(acc1);
            b.ShowDetail();
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: Noboranjan/C-sharp
        static void Main(string[] args)
        {
            Account ob1 = new Account("niloy", "83", 100);

            ob1.showinfo();
            ob1.depositCash(40);
            ob1.withdrawCash(10);
            ob1.showinfo();

            Account ob2 = new Account("nobo", "36", 150);

            ob2.showinfo();
            ob2.depositCash(50);
            ob2.withdrawCash(10);
            ob2.showinfo();

            ob1.transferCash(ob2, 50);
            ob1.showinfo();

            Bank aa = new Bank("bank", "uttara");

            aa.addAccount(ob1);
            aa.showBankinfo();

            Bank aaa = new Bank("bank", "azompur");

            aaa.deleteAccount(ob1);
            aaa.showBankinfo();
        }