Вроде инициализирую все переменные, почему не проходит
package com.javarush.task.task05.task0510;
/*
Кошкоинициация
*/
public class Cat {
String name;
int weight;
int age;
String color;
String address;
public void intialize(String name) {
this.name = name;
this.weight = 10;
this.age = 10;
this.color = "grey";
}
public void intialize(String name, int weight, int age) {
this.name = name;
this.weight = weight;
this.age = age;
this.color = "grey";
}
public void intialize(String name, int age) {
this.name = name;
this.weight = 10;
this.age = age;
this.color = "grey";
}
public void intialize(int weight, String color) {
this.weight = weight;
this.age = 10;
this.color = color;
}
public void intialize(int weight, String color, String address) {
this.name = null;
this.weight = weight;
this.age = 10;
this.color = color;
this.address = address;
}
public static void main(String[] args) {
}
}