Exemplo n.º 1
0
 static void Main()
 {
     // creating 3 different accounts
     Account acc1 = new Deposit(Custemer.Individual, 1234, 0.75m);
     Account acc2 = new Loan(Custemer.Companie, 100052, 1.2m);
     Account acc3 = new Mortgage(Custemer.Individual, 754, 0.98m);
     acc1.PrintBalance();
     acc1.CalcInterest(7);
     acc1.PrintBalance();
     acc1.Deposit(300);
     //acc1.Draw- it is Account
     Deposit acc4 = new Deposit(Custemer.Individual, 2222, 0.35m);
     acc4.Draw(1111);
     acc2.CalcInterest(7);
     acc2.Deposit(555);
 }