package it.polito.oop.vaccination;
public class Person {
private String SSN;
private String first;
private String last;
private int birthYear;
public Person(String SSN, String first, String last, int birthYear) {
this.SSN = SSN;
this.first = first;
this.last = last;
this.birthYear = birthYear;
}
public String getSSN() {
return SSN;
}
public String getFirst() {
return first;
}
public String getLast() {
return last;
}
public int getBirthYear() {
return birthYear;
}
@Override
public String toString() {
return SSN + “, ” + last + “, ” + first;
}
}