Помогите пожалуйста, уже раз 30 проверял, не проходит. Что не так?
У класса должен быть метод initialize, принимающий в качестве параметров вес, цвет, адрес и инициализирующий все переменные класса, кроме имени.
Рекомендация от ментора:
Убедись, что метод initialize инициализирует переменные класса переданными значениями
package com.javarush.task.task05.task0510;
/*
Кошкоинициация
*/
public class Cat {
String name;
int age;
int weight = 6;
String address;
String color = "color";
public void initialize(String name)
{
this.name = name;
this.weight = 3;
this.age = 4;
this.color = color;
}
public void initialize(String name,int weight,int age)
{
this.name = name;
this.age = age;
this.weight = weight;
this.color = color;
}
public void initialize(String name,int age)
{
this.name = null;
this.age = 9;
this.weight = weight;
this.color = "blue";
this.address = null;
}
public void initialize(int weight,String color) {
this.age = 4;
this.weight = weight;
this.color = color;
}
public void initialize(int weight, String address,String color) {
this.age = age;
this.weight =weight;
this.color = color;
this.address = null;
}
public static void main(String[] args) {
}
}





Спасибо большое!!!!!
Не знаю что бы я делал!