Page 1 of 1

Write an application named BankLoan that uses an abstract Loan class and HousingLoan and VechicleLoan to display differe

Posted: Wed Apr 27, 2022 3:41 pm
by answerhappygod
Write an application named BankLoan that uses an abstract Loan
class and HousingLoan and VechicleLoan to display different types
of Loans and the interest per month. The Loan class contains a
string representing the type of Loan and a double that holds the
monthly interest. The Loan class constructor requires a String
argument indicating the type of loan, but the HousingLoan and
VechicleLoan class constructors require no arguments. The Loan
class contains a get method for each field and two abstract methods
named set cost() and displays (). The housing loan class set cost()
method sets the monthly interest to 8%, and the Vehicle class sets
the monthly interest to 12%. Write an application named
UseInsurance that prompts the user for the type of insurance to be
displayed, and then create the appropriate object