// Draw everything g.drawString("Patient name is "+name, x , y); g.drawString("Last pulse rate is "+pulse, x, y+20); g.drawString("National Insurance ID is "+ID,x ,y+40); g.drawString("Number of days resident is " +numberDaysResident, x, y+60);
this.name = name; this.pulse = pulse; this.ID = ID; numberDaysResident = 0;