Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Patient extends User {
- // code from previous exercise
- //long patientId;
- boolean insured;
- public boolean isInsured() {
- return insured;
- }
- public void setInsured(boolean insured) {
- this.insured = insured;
- }
- HealthInsurancePlan insurancePlan;
- public HealthInsurancePlan getInsurancePlan(){
- return insurancePlan;
- }
- public void setInsurancePlan(HealthInsurancePlan insurancePlan){
- this.insurancePlan = insurancePlan;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement