как и что сделать
package com.javarush.task.task05.task0517;
/*
Конструируем котиков
*/
public class Cat {
private String name;
private int age;
private String color;
private int weight;
String address;
public Cat(String name)
{
this.name = name;
}
public Cat(String name, int weight, int age)
{
this.name = name;
this.weight = weight;
this.age = age;
}
public Cat(String name, int age, int weight)
{
this.name = name;
this.age = age;
this.weight = 8;
}
public Cat(String name,String address,int weight, String color)
{
this.name = null;
this.addres = null;
this.weight = weight;
this.color = colot;
}
public Cat(String name, String addres, int weight, String color, int age)
{
this.name = "Lox";
this.addres = addres;
this.color = color;
this.weight = weight;
this.age = age;
} //напишите тут ваш код
public static void main(String[] args) {
}
}