FileDocCategorySizeDatePackage
PatientClass.javaAPI DocExample680Sun Oct 14 19:28:14 BST 2001None

PatientClass

public class PatientClass extends Object

Fields Summary
private String
name
private String
ID
private int
pulse
private int
numberDaysResident
Constructors Summary
Methods Summary
public voiddisplayDetails(java.awt.Graphics g, int x, int y)

		// 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);
		
	
public voidsetDetails(java.lang.String name, int pulse, java.lang.String ID)

		this.name  = name;
		this.pulse = pulse;
		this.ID    = ID;
		numberDaysResident = 0;