Advertisement
AC_is_here

Patient

Jul 30th, 2020
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.51 KB | None | 0 0
  1. public class Patient extends User {
  2.        // code from previous exercise
  3.        //long patientId;
  4.         boolean insured;
  5.         public boolean isInsured() {
  6.             return insured;
  7.         }
  8.         public void setInsured(boolean insured) {
  9.             this.insured = insured;
  10.         }
  11.        
  12.        HealthInsurancePlan insurancePlan;
  13.        public HealthInsurancePlan getInsurancePlan(){
  14.            return insurancePlan;
  15.        }
  16.        
  17.        public void setInsurancePlan(HealthInsurancePlan insurancePlan){
  18.            this.insurancePlan = insurancePlan;
  19.        }
  20.        
  21.     }  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement