Последний пункт не походит
package com.javarush.task.task05.task0510;
/*
Кошкоинициация
*/
public class Cat {
private String filename = null;
private String name, address, color;
private int weight, age;
//7
public void initialize(String name){
this.name=name;
this.color= "black";
this.weight=3;
this.age=1;
}
//8
public void initialize(String name,int weight,int age){
this.name=name;
this.color="gray";
this.weight=weight;
this.age=age;
}
//9
public void initialize(String name,int age){
this.name=name;
this.color="red";
this.weight=6;
this.age=age;
}
//10
public void initialize(int weight,String color){
this.color=color;
this.weight=weight;
this.age=11;
}
//11
public void initialize(int weight, String address, String color){
this.color=color;
this.weight=weight;
this.age=7;
// this.address=address;
}
//напишите тут ваш код
public static void main(String[] args) {
}
}