Question: class PatientDatabase { private Patient [ ] patients; private int numPatients; private static int maxPatients = 8 9 9 ; public PatientDatabase ( ) {

class PatientDatabase {
private Patient[] patients;
private int numPatients;
private static int maxPatients =899;
public PatientDatabase(){
patients = new Patient[maxPatients];
numPatients =0
}
// Register a new Patient in the database
// return false if out of space
public boolean registerNewPatient(String name){dots}
// Print all patient names in alphabetical order
public void printNamesAlphabetically(){dots}
}
Match each symbol on the left to the part of the class on the right.
class PatientDatabase { private Patient [ ]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!