| Description |
Construct a class that represents a loan. This class should contain data representing the interest rate, loan amount, and the length of loan period (in years). The class should have constructors that permits a loan to be created when:
- annual interest rate, length of loan period, and loan amount are specified\n - none of the properties of the loan are specified. In this, we create a loan with default values for the loan properties (3 % interest rate, 1-year loan period, and 1000 loan amount).
The other method of the this class should calculate the amount of monthly payments on the loan.
The LoanTester1 class instantiates an object from this class and invokes its method to determine the amount of monthly payments on the loan. |