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 .
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