"У класса должен быть конструктор, принимающий в качестве параметра имя, но инициализирующий все переменные класса, кроме адреса."
Это условие принято.
Остальные сделал по подобию, но не проходят...
package com.javarush.task.task05.task0517;
/*
Конструируем котиков
*/
public class Cat {
private String name;
private int age = 3;
private int weight = 5;
private String address;
private String color;
public Cat(String name){
this.name = name;
this.age = 3;
this.weight = 2;
this.color = "color";
}
public Cat(String name, int weight, int age){
this.name = name;
this.age = 5;
this.weight = 7;
this.color = "color";
}
public Cat(String name, int age){
this.name = null;
this.age = 1;
this.weight = 2;
this.color = "color";
}
public Cat(int weight, String color){
this.age = age;
this.weight = 12;
this.color = null;
}
public Cat(int weight, String color, String address){
this.age = 3;
this.weight = 5;
this.address = address;
this.color = "color";
}
//напишите тут ваш код
public static void main(String[] args) {
}
}