I have no idea what to do. The third initialize method is accepted, but the others aren't.
package com.codegym.task.task05.task0510;
/*
Initializing cats
*/
public class Cat {
private String name;
private int age;
private int weight;
private String address;
private String color;
public void initialize(String name){
this.name = name;
this.weight = weight;
this.age = age;
this.color = color;
}
public void initialize(String name, int weight, int age){
this.name = name;
this.age = age;
this.weight = weight;
this.color = color;
}
public void initialize(String name, int age){
this.name = name;
this.age = age;
this.weight = weight;
this.color = color;
}
public void initialize(int weight, String color){
this.age = age;
this.weight = weight;
this.color = color;
}
public void initialize(int weight, String color, String address){
this.address = address;
this.age = age;
this.weight = weight;
this.color = color;
}
public static void main(String[] args) {
}
}