From 1487d0782c27061d58b871bb2d9b97c2a99b13ef Mon Sep 17 00:00:00 2001 From: Tim L Date: Mon, 8 Jul 2024 16:29:26 -0400 Subject: [PATCH] a few more animal --- .../java/com/zipcodewilmington/assessment1/part3/Pet.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/zipcodewilmington/assessment1/part3/Pet.java b/src/main/java/com/zipcodewilmington/assessment1/part3/Pet.java index b849734..43bc24c 100644 --- a/src/main/java/com/zipcodewilmington/assessment1/part3/Pet.java +++ b/src/main/java/com/zipcodewilmington/assessment1/part3/Pet.java @@ -34,8 +34,8 @@ public Pet() { */ public Pet(int age) { this.name = ""; - this.age = 0; - this.owner = ""; + this.age = age; + this.owner = null; } /** @@ -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; } /**