We already did a similar (or exactly same) exercise.. I don't get why this doesn't work now...
package com.codegym.task.task05.task0510;
/*
Initializing cats
*/
public class Cat {
public String name;
public int weight;
public int age;
public String color;
public String address;
public Cat(String name) {
this.name =name;
weight = 2;
age = 3;
color = "blue";
}
public Cat(String name, int weight, int age) {
this.name = name;
this.weight = weight;
this.age = age;
color = "blue";
}
public Cat(String name, int age) {
this.name = name;
this.age = age;
weight = 8;
color = "blue";
}
public Cat(int weight, String color) {
this.weight = weight;
this.color = color;
age = 3;
}
public Cat(int weight, String color, String address) {
this.weight = weight;
this.color = color;
this.address = address;
age = 3;
}
public static void main(String[] args) {
}
}