From a2d34805aca3f1636e0fd51214ecd7fb640905ca Mon Sep 17 00:00:00 2001 From: sunkuangdong <769296817@qq.com> Date: Mon, 18 Nov 2019 21:27:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=96=B0=E5=BB=BA=E4=B8=A4=E4=B8=AA?= =?UTF-8?q?=E6=9E=84=E9=80=A0=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/github/hcsp/pet/Cat.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/github/hcsp/pet/Cat.java b/src/main/java/com/github/hcsp/pet/Cat.java index 7741f09..bfd7f8f 100644 --- a/src/main/java/com/github/hcsp/pet/Cat.java +++ b/src/main/java/com/github/hcsp/pet/Cat.java @@ -3,6 +3,10 @@ public class Cat { public String name; + public Cat () {} + public Cat (String name) { + this.name = name; + } // Create two constructor here: Cat() and Cat(String name) // 在这里创建两个构造器:Cat()和Cat(String name)