static void Main(string[] args) { Console.WriteLine("************************Bank Management System***********************************\n"); Console.WriteLine("\nSavings: \n"); Savings s1 = new Savings(11456, "Masfikur", 10000); Savings s2 = new Savings(27945, "Fahim", 15000); s1.Transfer(5000, s2); s2.ShowInfo(); Console.WriteLine("\nFixed Deposit Account: \n"); Fixed f1 = new Fixed(87561, "Leo", 100000, 7); Fixed f2 = new Fixed(3453, "Messi", 25000, 15); f1.Transfer(5000, f2); f2.ShowInfo(); Console.WriteLine("\nOver Draft: \n"); OverDraft od1 = new OverDraft(71971, "Cristiano", 100000); OverDraft od2 = new OverDraft(65973, "Ronaldo", 50000); od1.Transfer(5000, od2); od2.ShowInfo(); Console.WriteLine("\nSpecial Current Account: "); SpecialCurrent sp1 = new SpecialCurrent(24536, "Toni", 45000); SpecialCurrent sp2 = new SpecialCurrent(35697, "Kroos", 25000); sp1.Transfer(2000, sp2); sp2.ShowInfo(); Console.ReadLine(); }
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); }
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); }
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); }
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); }
public static void Main(string[] args) { const decimal OPENING_BALANCE = 55m; const decimal MONTHLY_INTEREST = 0.0033m; // Create and use Savings object Savings savings = new Savings(OPENING_BALANCE); savings.AddMonthlyInterest(MONTHLY_INTEREST); savings.ShowBalance(); // Create and use Checking object Checking checking = new Checking(OPENING_BALANCE); checking.DeductServiceCharge(); checking.ShowBalance(); // Create and use JointSavings object JointSavings jointSavings = new JointSavings("George", "Jane", OPENING_BALANCE); jointSavings.AddMonthlyInterest(MONTHLY_INTEREST); jointSavings.ShowBalance(); Console.ReadLine(); }