diff --git a/src/main/java/com/github/hcsp/pet/Cat.java b/src/main/java/com/github/hcsp/pet/Cat.java index 163caaf..9f78119 100644 --- a/src/main/java/com/github/hcsp/pet/Cat.java +++ b/src/main/java/com/github/hcsp/pet/Cat.java @@ -4,6 +4,7 @@ public class Cat { public String name; public void sayName() { + System.out.println(name); // Print itself's name to standard output (System.out) here // 在这里将自己的名字打印到标准输出(System.out) }