static void Main(string[] args) { Account Jothi = new Savings("Jothi", "001", 5000.0f); Account Nishat = new Current("Nishat", "002", 2000f); Account Moumita = new Fixed("Moumita", "003", 1000f, 2015, 10); Account ss = new SuperSavings("Iffat", "004", 100f); ss.Deposit(80); ss.ShowInfo(); Account overdraft = new Overdraft("Jahan", "005", 1000f, 5000); overdraft.Transfer(ss, 5000); overdraft.Deposit(10000); overdraft.ShowInfo(); overdraft.showAllTransaction(); Customer customer = new Customer("Iffat Jahan"); Nishat.Deposit(10000); Nishat.Transfer(Jothi, 5000); Nishat.showAllTransaction(); Jothi.ShowInfo(); Jothi.Deposit(2000f); Jothi.Transfer(Nishat, 4000); Jothi.Withdraw(3000); Jothi.showAllTransaction(); }
static void Main(string[] args) { Account saif = new Savings("Saif", "001", 5000.0f); Account raihan = new Current("Raihan", "002", 2000f); Account sakib = new Fixed("Sakib", "003", 1000f, 2015, 10); Account ss = new SuperSavings("Helal", "004", 100f); ss.Deposit(80); ss.ShowInfo(); Account overdraft = new Overdraft("Kashem", "005", 1000f, 5000); overdraft.Transfer(ss, 5000); overdraft.Deposit(10000); overdraft.ShowInfo(); overdraft.showAllTransaction(); Customer customer = new Customer("Saif Raihan"); raihan.Deposit(10000); raihan.Transfer(saif, 5000); raihan.showAllTransaction(); saif.ShowInfo(); saif.Deposit(2000f); saif.Transfer(raihan, 4000); saif.Withdraw(3000); saif.showAllTransaction(); //rakib.Deposit(5000); //rakib.Withdraw(1000); //rakib.ShowInfo(); //alif.Transfer(utsho, 1000f); //utsho.ShowInfo(); //customer.AddAccount(alif, utsho); //customer.AccDetails(); }
static void Main(string[] args) { Account alif = new Savings("Alif", "001", 5000.0f); Account utsho = new Current("Utsho", "002", 2000f); Account rakib = new Fixed("Rakib", "003", 1000f, 2015, 10); Account ss = new SuperSavings("Shahriar", "004", 100f); ss.Deposit(80); ss.ShowInfo(); Account overdraft = new Overdraft("Arif", "005", 1000f, 5000); overdraft.Transfer(ss, 5000); overdraft.Deposit(10000); overdraft.ShowInfo(); overdraft.showAllTransaction(); Customer customer = new Customer("Alif Uthso"); utsho.Deposit(10000); utsho.Transfer(alif, 5000); utsho.showAllTransaction(); alif.ShowInfo(); alif.Deposit(2000f); alif.Transfer(utsho, 4000); alif.Withdraw(3000); alif.showAllTransaction(); //rakib.Deposit(5000); //rakib.Withdraw(1000); //rakib.ShowInfo(); //alif.Transfer(utsho, 1000f); //utsho.ShowInfo(); //customer.AddAccount(alif, utsho); //customer.AccDetails(); }