ЧТО В КОНСТРУКТОРАХ НЕ ПРАВИЛЬНО, ОНИ ЧТО С КИТАЯ
package com.javarush.task.task05.task0517;
/*
Конструируем котиков
*/
public class Cat {
String name;
int age;
String color;
int weight;
String address;
public Cat(String name)
{
this.name = name;
this.age = 1;
this.weight = 1;
this.color = "green";
this.address = "lil";
;
}
public Cat(String name, int weight, int age)
{
this.name = name;
this.weight = weight;
this.age = age;
}
public void Cat(String name, int age, int weight)
{
this.name = name;
this.age = age;
this.weight = weight;
this.address = "lol";
this.color = "red";
}
public void Cat(int age, String name)
{
this.name = null;
this.address = null;
this.weight = 8;
this.color = "hight";
this.age = 16;
}
public void Cat( int weight, String color, String address)
{
this.name = "vova";
this.address = address;
this.color = color;
this.weight = weight;
this.age = 18;
} //напишите тут ваш код
public static void main(String[] args) {
}
}