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