Ну как бы инициализировал передал а оно никак!
package com.javarush.task.task05.task0510;
/*
Кошкоинициация
*/
public class Cat {
public String name;
public int age;
public int weight;
public String address;
public String color;
public void initialize (String name){
this.name = name;
this.age = 0;
this.weight = 0;
this.color = null;
}
public void initialize (String name, int weight, int age){
this.name = name;
this.age = 0;
this.weight = 0;
this.color = null;
}
public void Initialize (String name, int age){
this.name = name;
this.age = 0;
this.weight = 0;
this.color = null;
}
public void Initialize (int weight, String color){
this.age = 0;
this.weight = 0;
this.color = null;
}
public void Initialize (int weight, String color,String address){
this.age = 0;
this.weight = 0;
this.color = null;
}
public static void main(String[] args) {
}
}