Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class PlatinumPlan extends HealthInsurancePlan{
- double coverage, discount;
- PlatinumPlan(){
- coverage = 0.9;
- discount = 50.0;
- }
- public double getDiscount(){
- return discount;
- }
- //exercise states not to define same method in subclass as well
- public double getCoverage(){
- return coverage;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement