Can anybody help me, please?
I cannot find the root cause of why my code is not being accepted.
Any help would be appreciated.
Thank you!
package com.codegym.task.task05.task0517;
public class Cat {
String name, color, address;
int age, weight;
public void constructor(String name) {
this.name = name;
color = "white";
age = 2;
weight = 5;
address = null;
}
public void constructor(String name, int weight, int age) {
this.name = name;
this.weight = weight;
this.age = age;
color = "red";
}
public void constructor(String name, int age) {
this.name = name;
this.age = age;
weight = 5;
color = "black";
}
public void constructor(int weight, String color) {
this.weight = weight;
this.color = color;
age = 2;
}
public void constructor(int weight, String color, String address) {
this.weight = weight;
this.color = color;
this.address = address;
age = 2;
}
public static void main(String[] args) {
}
}