Wednesday, February 11, 2009

Today in class...

You will be doing a "minor project" with another classmate.

We will write software using Java for a hospital to track its patients. You will first make a Patient class and four necessary methods for the Patient. Create two possible constructors for your Patient class.

Use the Patient class to create a CriticalCare patient (Remember: extends). Add an extra method that a CriticalCare patient may need to have. Create a constructor for the CriticalCare patient.

Lastly create a Hospital class that has an ArrayList of Patients and CriticalCare patients.

Use a loop to ask a user to input the information to admit a Patient and a CriticalCare patient.

Please upload it to your FTP space as Hospital.zip.

DF

No comments: