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) { Console.WriteLine("SPECIAL SAVINGS ACCOUNT"); SpecialSavings s1 = new SpecialSavings("jannat", "1234", 5, 10); SpecialSavings s2 = new SpecialSavings("momo", "1236", 5, 10); s1.ShowInfo(); s1.Deposit(2); s1.Withdraw(4); s1.Transfer(s2, 5); Console.WriteLine("**************************************"); Console.WriteLine("OVER DRAFT ACCOUNT"); OverDraft o1 = new OverDraft("fahmi", "5678", 10, 3); OverDraft o2 = new OverDraft("nigar", "91011", 1, 3); o1.ShowInfo(); o1.Deposit(2); o1.Withdraw(5); o1.Transfer(o2, 15); }