Уже голову сломал что не так?
package com.javarush.task.task05.task0510;
/*
Кошкоинициация
*/
public class Cat {
String name = null;
int age = 3;
int weight = 2;
String address = null;
String color = null;
public void initialize(String name, int age, int weight, String color)
{
this.name = name;
this.age = age;
this.weight = weight;
this.color = "Grey";
}
public void initialize(String name)
{
this.name = name;
this.age = 3;
this.weight = 4;
this.color = "Grey";
}
public void initialize(String name,int age, int weight){
this.name = name;
this.age = 5;
this.weight = 6;
this.color= "black";
}
public void initialize(String name, int age)
{
this.name = name;
this.age = age;
}
public void initialize(int weight, String color)
{
this.color = color;
this.weight = weight;
}
public void initialize(int weight, String color, String address)
{
this.color = color;
this.weight = weight;
this.address = address;
}
//напишите тут ваш код
public static void main(String[] args) {
}
}