It feels like I have tried everything to satisfy conditions and nothing seems to work. Please advise. Thank you.
package com.codegym.task.task05.task0510;
/*
Initializing cats
*/
public class Cat {
//write your code here
String name = "unknown";
int weight = 8;
int age = 0;
String color = "undetermined";
String address = "null";
public void initialize (String name){
this.name = name;
this.weight = 7;
this.age = 4;
this.color = "grey";
}
public void initialize (String name, int weight, int age){
this.name = "Kitty";
this.weight = 7;
this.age = 4;
this.color = "grey";
}
public void initialize (String name, int age){
this.name = "Kitty";
this.weight = 7;
this.age = 4;
this.color = "grey";
}
public void initialize (int weight, String color){
this.weight = 7;
this.age = 4;
this.color = "grey";
}
public void initialize (int weight, String color, String address){
this.weight = 7;
this.age = 4;
this.color = "grey";
this.address = "123 Main St.";
}
public static void main(String[] args) {
}
}