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