大佬救命!后面几个条件错在哪Boss, help! What is wrong with the latter conditions
package zh.codegym.task.task05.task0510;
/*
初始化猫
*/
public class Cat {
String name;
int age;
int weight;
String address;
String color;
public void initialize(String name){
this.name = null;
this.age = 5;
this.weight = 10;
this.color = "yellow";
}
public void initialize(String name,int weight,int age){
this.name = null;
this.age = 5;
this.weight = 10;
this.color = "yellow";
}
public void initialize(int weight,String color){
this.age = 5;
this.weight = 10;
this.color = "yellow";
}
public void initialize(int weight,String color,String address){
this.address = null;
this.age = 5;
this.weight = 10;
this.color = "yellow";
}//在此编写你的代码
public static void main(String[] args) {
}
}