I don't understand why that one condition isn't being met.
Please help
Thanks
package com.codegym.task.task05.task0517;
/*
Creating cats
*/
public class Cat {
//write your code here
private String name;
private int age;
private int weight;
private String address;
private String color;
public Cat(String name){
this.name = name;
this.age = 1;
this. weight = 1;
this.color = "black";
}
public Cat(String name, int age, int weight){
this.name = name;
this.age = age;
this.weight = weight;
color = "black";
}
public Cat(String name, int age){
this.name = name;
this.age = age;
this.weight = 1;
this.color = "black";
}
public Cat(int weight, String color){
this.weight = weight;
this.color = color;
this.age = 1;
}
public Cat(int weight, String color, String address){
this.weight = weight;
this.color = color;
this.address = address;
this.age = 1;
}
public static void main(String[] args) {
}
}