Уже битый час сижу, пытался вводить ТОЛЬКО переменные которые есть в конструкторе, сейчас в каждом конструкторе по 5 штук переменных.
Не могу понять чего он хочет, ВСЕ ПЕРЕМЕННЫЕ КЛАССА в каждом конструкторе ведь.
З.Ы Перепробывал вообще разные комбинации
package com.javarush.task.task05.task0517;
/*
Конструируем котиков
*/
public class Cat {
String name;
int age ;
int weight ;
String color ;
String address;
public Cat(String name){
this.name = name;
this.weight = weight;
this.age = age;
this.color = color;
}
public Cat(String name,int weight, int age){
this.name = name;
this.weight = weight;
this.age = age;
this.color = color;
}
public Cat(String name, int age){
this.name = name;
this.weight = weight;
this.age = age;
this.color = color;
}
public Cat(int weight, String color){
this.weight = weight;
this.age = age;
this.color = color;
}
public Cat(int weight,String color, String address){
this.weight = weight;
this.age = age;
this.color = color;
this.address = address;
}
public static void main(String[] args) {
}
}