编译时末三行输出语句提示找不到符号,懵了
```java
public class HomeWork07{
public void main(String[] args){
Dog dog1 = new Dog();
Dog dog2 = new Dog();
System.out.println("dog1 info:");
dog1.show();
System.out.println("dog2 info:");
dog2.show();
}
}
class Dog{
public Dog(){
String name = "gougou";
String color = "yellow";
int age = 2;
}
public void show(){
System.out.println("name = " + this.name);
System.out.println("color = " + this.color);
System.out.println("age = " + this.age);
}
}
```