CIS 407 All Assignments CIS 407 All Assignments | Page 15
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.
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”).