I've asked this question Adding objects to an array. And now it has brought up another question.
Is there a difference between this: For class Patient:
public Patient(String ptNo, String ptName, int procType) throws IOException
{
Patient.patientNo = ptNo;
Patient.patientName = ptName;
Patient.procedureType = procType;
}
and this:
public Patient(String ptNo, String ptName, int procType) throws IOException
{
this.patientNo = ptNo;
this.patientName = ptName;
this.procedureType = procType;
}
I thought they were the same thing?
edit I have created these in the Patient class.
private static String patientNo;
private static String procedureDate;
private static String patientName;