更正后的结果在这里,但还是没有通过 The corrected result is here, but it still has not passed.
package zh.codegym.task.task05.task0517;
/*
创建猫
*/
public class Cat {
String name;
int age;
int weight;
String address;
String color;
public Cat(String name){
this.name = name;
this.age = 5;
this.weight = 10;
this.color = "yellow";
}
public Cat(String name,int weight,int age){
this.name = name;
this.age = 5;
this.weight = 10;
this.color = "yellow";
}
public Cat(String name,int age){
this.name = name;
this.age = 5;
this.weight = 10;
this.color = "yellow";
}
public Cat(int weight,String color){
this.age = 5;
this.weight = 10;
this.color = "yellow";
}
public Cat(int weight,String color,String address){
this.age = 5;
this.weight = 10;
this.address = address;
this.color = "yellow";
}//在此编写你的代码
public static void main(String[] args) {
}
}