Нужна помощь с котоматрицей.
package com.javarush.task.task05.task0510;
/*
Кошкоинициация
*/
public class Cat {
//напишите тут ваш код
String name;
int age;
int weight;
String address;
String color;
public void initialize (String name){
this.name = name;
this.age = 1;
this.weight = 1;
this.color = "blue";
//this.address = address;
}
public void initialize (String name,int age, int weight){
this.name = name;
this.age = age;
this.weight = weight;
this.color = "green";
//this.address = address;
}
public void initialize (String name, int age){
this.name = name;
this.age = age;
this.weight = 8;
this.color = "white";
//this.address = address;
}
public void initialize (int weight, String color){
this.name = "one";
this.age = 5;
this.color = color;
this.weight = weight;
//this.address = address;
}
public void initialize (int weight, String color, String address){
this.weight = weight;
this.color = color;
this.address = address;
this.name = "five";
this.age = 5;
}
public static void main(String[] args) {
}
}