Advertisement
Vanya_Shestakov

Untitled

Dec 9th, 2020
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. public class Patient {
  2. private String surname;
  3. private String city;
  4. private String diagnosis;
  5. private String sex;
  6. private String age;
  7.  
  8. public Patient(String surname, String age, String sex, String city, String diagnosis) {
  9. this.surname = surname;
  10. this.city = city;
  11. this.age = age;
  12. this.sex = sex;
  13. this.diagnosis = diagnosis;
  14. }
  15.  
  16. public String getSurname() {
  17. return surname;
  18. }
  19.  
  20. public String getCity() {
  21. return city;
  22. }
  23.  
  24. public String getDiagnosis() {
  25. return diagnosis;
  26. }
  27.  
  28. public String getSex() {
  29. return sex;
  30. }
  31.  
  32. public String getAge() {
  33. return age;
  34. }
  35.  
  36. public void setSurname(String surname) {
  37. this.surname = surname;
  38. }
  39.  
  40. public void setCity(String city) {
  41. this.city = city;
  42. }
  43.  
  44. public void setDiagnosis(String diagnosis) {
  45. this.diagnosis = diagnosis;
  46. }
  47.  
  48. public void setSex(String sex) {
  49. this.sex = sex;
  50. }
  51.  
  52. public void setAge(String age) {
  53. this.age = age;
  54. }
  55. }
  56.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement