OutPatientpublic class OutPatient extends Object
Fields Summary |
---|
private int | nrOfVisits |
Constructors Summary |
---|
public InPatient()
|
Methods Summary |
---|
public int | displayDetails(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 void | setDetails(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;
|
|