Update Person.java

Change methods order
This commit is contained in:
GuenHamza 2016-07-24 15:51:24 +01:00 committed by GitHub
parent bacb7be6c2
commit 2c6f98ff02
1 changed files with 6 additions and 6 deletions

View File

@ -30,6 +30,12 @@ public class Person {
this.dateOfBirth = dateOfBirth;
}
@Override
public String toString() {
return "Person [age=" + age + ", lastName=" + lastName + ", firstName="
+ firstName + ", dateOfBirth=" + dateOfBirth + "]";
}
public int getAge() {
return age;
}
@ -61,10 +67,4 @@ public class Person {
public void setDateOfBirth(Date dateOfBirth) {
this.dateOfBirth = dateOfBirth;
}
@Override
public String toString() {
return "Person [age=" + age + ", lastName=" + lastName + ", firstName="
+ firstName + ", dateOfBirth=" + dateOfBirth + "]";
}
}