Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Patient {
- private String firstName;
- private String surname;
- private String email;
- private int contact;
- public Patient(String firstName, String surname, String email, int contact) {
- firstName = this.firstName;
- surname = this.surname;
- email = this.email;
- contact = this.contact;
- }
- public String getName() {
- return this.firstName;
- }
- public String getSurname() {
- return this.surname;
- }
- public String getEmail() {
- return this.email;
- }
- public int getContact() {
- return this.contact;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement