Skip to content

Person lab complete #50

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 19 additions & 7 deletions src/main/java/com/zipcodewilmington/person/Person.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,40 @@ public class Person {
private int age;

public Person() {
name = "";
age = Integer.MAX_VALUE;
}

public Person(int age) {
public Person(int personAge) {
age = personAge;

}

public Person(String name) {
public Person(String nameOfPerson) {
name = nameOfPerson;
}

public Person(String name, int age) {
public Person(String nameOfPerson, int ageOfPerson) {
name = nameOfPerson;
age = ageOfPerson;
}

public void setName(String name) {
public void setName(String nameOfPerson) {
name = nameOfPerson;

}

public void setAge(int age) {
public void setAge(int ageOfPerson) {
age = ageOfPerson;
}

public String getName() {
return null;

return name;
}

public Integer getAge() {
return null;

return age;
}
}