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