static void Main(string[] args) { //When complete, uncommenting these lines should result in two tables being displayed to the console. Amortization table1 = new Amortization(new SerialLoan(10000, 0.02, 10)); Amortization table2 = new Amortization(new AnnuityLoan(10000, 0.02, 10)); table1.Print(); table2.Print(); }
static void Main(string[] args) { // When complete, uncommenting these lines should result in two tables being displayed to the console. //creates new tables for any type of loan created Amortization table1 = new Amortization(new SerialLoan(10000, 0.02, 10)); Amortization table2 = new Amortization(new AnnuityLoan(10000, 0.02, 10)); //calls print function in amortization table1.Print(); table2.Print(); }