Не выполняется первое условие "Программа не должна считывать данные с клавиатуры."
package com.javarush.task.task05.task0510;
/*
Кошкоинициация
*/
public class Cat {
//напишите тут ваш код
String name = null;
String color = "Gray";
String address = null;
int age = 5;
int weight = 7;
public void initialize (String name){
this.name = name;
this.color = "Blue";
//this.addres = addres;
this.age = 6;
this.weight = 12;
}
public void initialize (String name, int weight, int age){
this.name = name;
this.weight = weight;
//this.addres = addres;
this.age = age;
this.color = "Brown";
}
public void initialize (String name, int age){
this.name = name;
this.color = "Red";
//this.addres = addres;
this.age = age;
this.weight = 6;
}
public void initialize (int weight, String color){
//this.name = name;
this.weight = weight;
this.color = color;
this.age = 9;
}
public void initialize (int weight, String color, String address){
this.weight = weight;
this.color = color;
this.address = address;
this.age = 13;
}
}