1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
public class Person implements Serializable { private String name; private Gender gender; private Faction faction; private LocalDate birthday; public Person() { } public Person(String name, Gender gender, Faction faction, LocalDate birthday) { this.name = name; this.gender = gender; this.faction = faction; this.birthday = birthday; } @Override public String toString() { return "Person{" + "name='" + name + '\'' + ", gender=" + gender + ", faction=" + faction + ", birthday=" + birthday + '}'; }
|