Все прописал, как надо, не вижу ошибки в коде
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 = "unknown";
this.age = 15;
this.weight = 12;
// this.address = null;
this.color = "Black";
}
public Cat(String name,int weight,int age){
this.name = "unknown";
this.age = 17;
this.weight = 12;
// this.address = null;
this.color = "Yellow";
}
public Cat(String name,int age){
this.name = "unknown";
this.age = 11;
this.weight = 12;
// this.address = null;
this.color = "Brown";
}
public Cat(int weight,String color){
// this.name = null;
this.color = color;
// this.address = null;
this.weight = weight;
this.age = age;
}
public Cat(int weight,String color,String address){
// this.name = null;
this.color = color;
this.weight = weight;
this.address = address;
this.age = age;
}
public static void main(String[] args) {
// Cat cat1 = new Cat();
}
}