FileDocCategorySizeDatePackage
OutPatient.javaAPI DocExample756Tue Feb 12 13:34:00 GMT 2002hospital

OutPatient

public class OutPatient extends Object

Fields Summary
private int
nrOfVisits
Constructors Summary
public InPatient()

  
Methods Summary
public intdisplayDetails(Graphics g, int x, int y)

    int newY = super.displayDetails(g, x, y);
    // newY is the next place to start drawing on the JPanel
    g.drawText("Number of days resident = "+nrDaysResident,x,newY);
    ward.displayDetails(g, x, newY+20);
    return newY+40;
  
public voidsetDetails(java.lang.String name, java.lang.String ID, int age, char sex, Consultant consultant, int nrOfVisits, java.lang.String OutPatientDepartment, Consultant consultant)

    super.setDetails(name, ID, age, sex, consultant);
    this.nrDaysResident = nrDaysResident;
    this.ward = ward;