it says that this constructor already exists or something like that...
package com.codegym.task.task05.task0517;
/*
Creating cats
*/
public class Cat {
public String name = null;
public String address = null;
public String color;
public int age, weight;
public Cat(String name) {
this.name = name;
this.age = 1;
this.weight = 2;
this.color = "black";
}
public Cat(String name, int weight, int age) {
this.name = name;
this.age = age;
this.weight = weight;
this.color = "black";
}
public Cat(String name, int age) {
this.name = name;
this.age = age;
this.weight = 2;
this.color = "black";
}
public Cat(String color, int weight) {
this.age = 1;
this.weight = weight;
this.color = color;
}
public Cat(String color, int weight, String address) {
this.age = 1;
this.weight = weight;
this.color = color;
this.address = address;
}
public static void main(String[] args) {
}
}