Всем привет!) Подскажите пожалуйста что делаю не так) если можно поподробнее)
package com.javarush.task.task05.task0517;
/*
Конструируем котиков
*/
public class Cat {
private String name;
private int age;
private int weight;
private String address;
private String color;
public Cat (String name){
this.name = name;
this.age = age;
this.weight = weight;
this.color = color;
}
public Cat(String name,int weight,int age){
this.name = name;
this.age = age;
this.weight = weight;
this.color = color;
}
public Cat(String name,int age){
this.name = name;
this.age = age;
this.weight = 1;
this.color = color;
}
public Cat(int weight,String color){
this.weight = weight;
this.age = 1;
this.color = color;
this.address = null;
this.name = null;
}
public Cat(int weight,String color,String address){
this.age = 1;
this.weight = 1;
this.color = color;
this.address = address;
}
public static void main(String[] args) {
}
}