diff --git a/src/main/java/com/bytelegend/Cat.java b/src/main/java/com/bytelegend/Cat.java index ba46a3c..90c3509 100644 --- a/src/main/java/com/bytelegend/Cat.java +++ b/src/main/java/com/bytelegend/Cat.java @@ -4,11 +4,11 @@ public class Cat { public String name; public Cat(String name) { - name = name; + this.name = name; } @Override public String toString() { - return "Cat(" + name + ")"; + return "Cat(" + this.name + ")"; } }