- /rahaf omar alomar/435201926/42077 public...

  • No School
  • AA 1
  • 2

This preview shows page 1 - 2 out of 2 pages.

//rahaf omar alomar //435201926 //42077 public class Patient1{ //instance varibles private String name, ID, admissionDate , releaseDate; private char gender; private int priority; public static int numberOfPatients; public Patient1() { //default constructor name = ""; ID = ""; gender = '-'; priority = 1; admissionDate = " 1-1-2015"; releaseDate = " 31-1-2015"; numberOfPatients++; }// end default constructor //setter methods public void setName ( String name1 ) { name = name1; }//end setName public void setID ( String ID1 ) { ID = ID1; }//end setID public void setAdmissionDate (String date1 ) { admissionDate = date1; }//end setAdmissionDate public void setReleaseDate ( String date1 ) { releaseDate = date1; }//end setReleaseDat public void setGender ( char gender1 ) { gender = gender1; }//end setGender public void setPriority (int priority1 ) { priority = priority1; }//end setPriority // getter methods public String getName () { return name; } //end getName public String getID () { return ID; } //end getID public String getAdmissionDate () { return admissionDate; } //end getAdmissionDate public String getReleaseDate () { return releaseDate; } //end getReleaseDate
Image of page 1

Subscribe to view the full document.

Image of page 2
  • Fall '19
  • omar alomar, public class Patient1, index of index2

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask 0 bonus questions You can ask 0 questions (0 expire soon) You can ask 0 questions (will expire )
Answers in as fast as 15 minutes