Вроде правильно все указано, но два условия не могу пройти
package com.javarush.task.task05.task0510;
/*
Кошкоинициация
*/
public class Cat {
String name ;
int age = 5;
int weight = 9;
String address ;
String color = "Red";
public void initialize (String name){
this.name = name;
this.age = 3;
this.weight = 7;
this.color = "blue";
}
public void initialize (String name, int weight , int age){
this.name = name;
this.weight = 7;
this.age = 2;
this.color = "Green";
}
public void initialize (String name, int age){
this.name = name;
this.age = 5;
this.weight = 3;
this.color = "black";
}
public void initialize (int weight, String color){
this.age = 8;
this.weight = 9;
this.color = "white";
}
public void initialize (int weight, String color, String address){
this.age = age;
this.weight = weight;
this.address = address;
this.color = color;
}
//напишите тут ваш код
public static void main(String[] args) {
}
}