CIS 407 Week 6 Assignment 1 Insurance Agent App Part 1 CIS 407 Week 6 Assignment 1 Insurance Agent App Pa | Seite 2

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. InsuranceAgentApp(String)is the constructor that takes the type three get methods for the three variables. InsuranceAgentApp() is the empty constructor;setInsuredObjectName(),setRiskAmount(), anddisplay() are abstract methods. riskAmount is the value of the Property being insured. the static RATE is the % used to calculates the annual premium. The constructorPropertyInsurance(String)takes a string which indicates the insurance type (e.g. “Property”). the three get methods return values of the three variables. setInsuredObjectName(),setRiskAmount(), anddisplay() are implementations of the abstract methods. riskAmount is the value of the Automobile being insured. the static RATE is the % used to calculates the annual premium.