первая и вторая инициализация не проходят, не могу понять почему(
package com.javarush.task.task05.task0510;
/*
Кошкоинициация
*/
public class Cat {
String name = null;
int weight = 6;
int age=8;
String color = null;
String address=null;
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.weight=weight;
this.age=age;
this.color=color;
}
public void initialize (String name,int age){
this.name=name;
this.age=age;
this.weight=weight;
}
public void initialize (int weight, String color){
this.name=name;
this.address=address;
this.age=age;
this.color=color;
this.weight=weight;
}
public void initialize (int weight, String color, String address){
this.address=address;
this.age=age;
this.color=color;
this.weight=weight;
}
public static void main(String[] args) {
}
}