FileDocCategorySizeDatePackage
Patient.javaAPI DocExample802Sun Oct 28 11:21:14 GMT 2001hospital.myprojects

Patient

public class Patient extends Object

Fields Summary
private String
name
private String
ID
private int
pulse
private Ward
ward
Constructors Summary
Methods Summary
public voiddisplayPatientDetails()

		// Draw everything
		System.out.println("Patient name is " + name);
		System.out.println("Last pulse rate is " + pulse);
		System.out.println("National Insurance ID is " + ID);
		ward.displayWardDetails();
	
public java.lang.StringgetID()

		return ID;
	
public java.lang.StringgetName()

		return name;
	
public intgetPulse()

		return pulse;
	
public voidsetPatientDetails(java.lang.String name, int pulse, java.lang.String ID)

		this.name  = name;
		this.pulse = pulse;
		this.ID    = ID;
	
public voidsetWard(Ward ward)

		this.ward = ward;