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(); }
static void Main(string[] args) { /*CurrentAccount a1 = new CurrentAccount("Mushfiqur Abir","12345",20000); * CurrentAccount a2 = new CurrentAccount("Mahabubur Sabir","67890",10000); * a1.ShowInfo(); * a2.ShowInfo(); * Console.WriteLine("************************"); * a1.Withdraw(5000); * a1.Transfer(a2, 5000); * Console.WriteLine("************************"); * a1.ShowInfo(); * a2.ShowInfo();*/ Account a1 = new SavingsAccount("ABIR", "12345", 50000); Account a2 = new CurrentAccount("ABIR", "67890", 50000); Account a3 = new SavingsAccount("ABIR SABIR", "112233", 5000); Account a4 = new FixedAccount("ABIR", "99999", 100000, 5, 2015); /*a1.Withdraw(49600); * a2.Withdraw(49600); * a1.ShowInfo(); * a2.ShowInfo();*/ Customer c = new Customer(); c.AddAccounts(a1, a2, a3, a4); //c.ShowAccDetails(); var acc = c.GetAccount("112233"); acc.Withdraw(4600); }
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) { BankAccount savingAccount = new SavingBankAccount("Siddiq", "S12345"); BankAccount FixedAccount = new FixedAccount("bakar", "C12345"); savingAccount.Deposit(40000); savingAccount.Withdraw(1000); savingAccount.Withdraw(1000); savingAccount.Withdraw(1000); savingAccount.GenerateAccountReport(); Console.WriteLine(); FixedAccount.Deposit(190000); FixedAccount.Withdraw(1000); FixedAccount.GenerateAccountReport(); Console.ReadLine(); }
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 SavingsAccount("Sreejan Roy", "19397371", 50000); Account a2 = new CurrentAccount("Sreejan Roy", "19397372", 50000); Account a3 = new SavingsAccount("Sreejan Roy", "19397373", 5000); Account a4 = new FixedAccount("Roy Sreejan", "19397374", 100000, 5, 2014); Customer c = new Customer(); c.AddAccount(a1, a2, a3, a4); var acc = c.GetAccount("19397371"); acc.Withdraw(49600); //c.ShowAccDetails(); }
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 SavingsAccount("Tanvir Ahmed", "145", 50000); Account a2 = new CurrentAccount("Tanvir Ahmed", "146", 50000); Account a3 = new SavingsAccount("Tanvir Ahmed Sabbir Ahmed", "147", 5000); Account a4 = new FixedAccount("Tanvir Ahmed", "148", 100000, 5, 2014); Customer c = new Customer(); c.AddAccount(a1, a2, a3, a4); var acc = c.GetAccount("146"); acc.Withdraw(49600); //c.ShowAccDetails(); }