Created
March 25, 2016 22:11
-
-
Save bchetty/df005d55cd489e5923e9 to your computer and use it in GitHub Desktop.
Patient Model Class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* @author Babji P, Chetty | |
*/ | |
public class Patient { | |
private int id; | |
private String name; | |
private boolean emergencyCase; | |
public Patient(int id, String name, boolean emergencyCase) { | |
this.id = id; | |
this.name = name; | |
this.emergencyCase = emergencyCase; | |
} | |
/** | |
* @return the id | |
*/ | |
public int getId() { | |
return id; | |
} | |
/** | |
* @param id the id to set | |
*/ | |
public void setId(int id) { | |
this.id = id; | |
} | |
/** | |
* @return the name | |
*/ | |
public String getName() { | |
return name; | |
} | |
/** | |
* @param name the name to set | |
*/ | |
public void setName(String name) { | |
this.name = name; | |
} | |
/** | |
* @return the emergencyCase | |
*/ | |
public boolean isEmergencyCase() { | |
return emergencyCase; | |
} | |
/** | |
* @param emergencyCase the emergencyCase to set | |
*/ | |
public void setEmergencyCase(boolean emergencyCase) { | |
this.emergencyCase = emergencyCase; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment