Объясните пожалуйста, что не так в коде. Не все условия выполнены.
package com.javarush.task.task05.task0517;
/*
Конструируем котиков
*/
public class Cat {
String name = null;
int age = 5;
int weight = 2;
String color = "red";
String address = null;
//напишите тут ваш код
public Cat(String name) {
this.name = name;
}
public Cat(String name,int weight, int age) {
this.name = name;
this.weight = weight;
this.age = age;
}
public Cat(String name, int age) {
this.name = name;
this.age = age;
}
public Cat(int weight, String collor) {
this.weight = weight;
this.color = color;
}
public Cat(int weight, String collor, String address) {
this.weight = weight;
this.color = color;
this.address = address;
}
public static void main(String[] args) {
}
}