не проходит проверку.
package com.javarush.task.task05.task0510;
/*
Кошкоинициация
*/
public class Cat {
private String name = null;
private int age = 1;
private int weight = 2;
private String address = null;
private String color = "black";
public void initialize(String name)
{
this.name = name;
this.age= age;
this.weight=weight;
this.color=color;
}
public void initialize(String name, int weight, int age)
{
this.name = name;
this.weight = weight;
this.age = age;
this.color=color;
this.address = "assfd";
}
public void initialize(String name, int age)
{
this.name = name;
this.age = age;
this.weight = weight;
}
public void initialize( int weight, String color)
{
this.color=color;
this.weight=weight;
this.name=name;
this.age=age;
}
public void initialize(int weight, String color, String address)
{
this.color=color;
this.weight=weight;
this.address=address;
}
public static void main(String[] args) {
}
}