Advertisement
Guest User

Untitled

a guest
Apr 1st, 2020
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. public class Patient {
  2.  
  3. private String firstName;
  4. private String surname;
  5. private String email;
  6. private int contact;
  7.  
  8. public Patient(String firstName, String surname, String email, int contact) {
  9. firstName = this.firstName;
  10. surname = this.surname;
  11. email = this.email;
  12. contact = this.contact;
  13.  
  14. }
  15.  
  16. public String getName() {
  17. return this.firstName;
  18. }
  19.  
  20. public String getSurname() {
  21. return this.surname;
  22. }
  23.  
  24. public String getEmail() {
  25. return this.email;
  26. }
  27.  
  28. public int getContact() {
  29. return this.contact;
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement