Skip to content

Commit

Permalink
a few more animal
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim L authored and Tim L committed Jul 8, 2024
1 parent 27cc8e6 commit 1487d07
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ public Pet() {
*/
public Pet(int age) {
this.name = "";
this.age = 0;
this.owner = "";
this.age = age;
this.owner = null;
}

/**
Expand All @@ -52,14 +52,14 @@ public Pet(String name, int age) {
* @return name of this pet
*/
public String getName() {
return this.getName();
return this.name;
}

/**
* @return age of this pet
*/
public Integer getAge() {
return this.getAge();
return this.age;
}

/**
Expand Down

0 comments on commit 1487d07

Please sign in to comment.