From 0761d041f963bd51e638e8d8abe797e806a07413 Mon Sep 17 00:00:00 2001 From: VacancyIF <45335949+VacancyIF@users.noreply.github.com> Date: Thu, 23 Nov 2023 13:46:30 +0800 Subject: [PATCH] Update Cat.java --- src/main/java/com/bytelegend/Cat.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 + ")"; } }