The constructorAutomobileInsurance(String)takes a string which indicates the insurance type
(e.g. “Automobile”).
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 flight being insured; the staticRATE is the % used to calculates
the annual premium.
The constructorTravelInsurance(String)takes a string which indicates the insurance type (e.g.
“Travel”).
the three get methods return values of the three variables.
setInsuredObjectName(),setRiskAmount(), anddisplay() are implementations of the abstract
methods.
The RATEs used to calculate the premiums are:
PropertyInsurance
AutomobileInsurance
TravelInsurance
0.25%
0.75%
0.73%
Section 1: Java Program File