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