Write a java program named MyInsurance that uses an Interface Classes named FamilyInsurance and IndividualInsurance and at least TWO (2) subclasses of health plan for each that provides a comprehensive medical coverage (eg, Critical Ilness plan, BabyCare plan, Hospitalised plan and etc). Your program also able to calculate the starter insurance fees for the first timer for one year during the entry, the calculation for the plan may be vary depends on age, category. And provide as well the monthly fee for the coming years depends on the annual rate of the health plan insurers, age and renew insurance (if any).
Apply encapsulation and abstraction (Interface and Abstraction) concepts.
Comments
Leave a comment