It is a common knowledge that most households , for protection against their major perils , take out insurance on their property , automobiles , travel , and so on . Insurance premiums are often paid on a monthly basis . In this assignment , you will build an interactive Java application that will help an insurance agent generate a quote for a household . Assume that the household wants to purchase property insurance , automobile insurance , and travel insurance . The Java application must generate a quote when the agent runs the application .
The application must contain four ( 4 ) Java classes that are stated and shown in the diagram below .
The InsuranceAgentApp class is an abstract class . ThePropertyInsurance , AutomobileInsurance , , andTravelInsurance classes inherit from the InsuranceAgentAppabstract class .
The specifications of each class are described below . The column on the left shows the class members and the column on the right provides a description of the class members . The ‘ S ’ designates astatic member ; the ‘ C ’ designates a constructor , and the ‘ A ’ designates an abstract member . The data types of each class members are shown on the left column .
Class Members and Their Properties Member ’ s Description type is the type of insurance ( e . g . “ Property ”).
Name is the name of the insured object ( e . g . “ Home ”); totalPremium is the staticquote for all the insurances taken by the household .