Question: Imagine that you are writing a program for a bank to help them keep track of the different types of loans they offer. The default

Imagine that you are writing a program for a bank to help them keep track of the different types of loans they offer. The default interest rate for loans provided by this bank is 4%.Assume that the Loan class has already been created and initializes a variable called interestRate to 4%. You are now writing a subclass called Mortgage. Interest rates for mortgages are slightly higher than regular loans.Write a method called computeMortgageInterestRate that multiplies the interestRate variable multiplied by 1.25.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!