Ну вот не хочет проходить задачка 2 из 5 неправильно , но не могу найти в чем.
package com.javarush.task.task05.task0510;
/*
Кошкоинициация
*/
public class Cat {
//напишите тут ваш код
String name = null;
int age;
int weight ;
String address =null;
String color;
public void initialize(String name){
this.name = name;
this.age = 2;
this.weight =1;
this.color = "black";
}
public void intialize(String name,int age, int weight){
this.name = name;
this.age = age;
this.weight = weight;
this.color= "black";
}
public void intialize(String name, int age){
this.name=name;
this.age=age;
this.weight = 2;
this.color = "black";
}
public void initialize(int weight, String color){
this.weight = weight;
this.color = color;
this.age = 2;
}
public void initialize(int weight,String color,String address){
this.weight=weight;
this.color=color;
this.address=address;
this.age = 2;
}
public static void main(String[] args) {
}
}