Интересует, почему ругается по требованиям 2, 7 и 8.
package com.javarush.task.jdk13.task05.task0510;
/*
Кошкоинициация
*/
public class Cat {
private String name = null;
private int weight;
private int age;
private String color = null;
private String address = null;
public void initialize (String name){
this.name = name;
}
public void initialize (String name, int weight, int age){
this.name = name;
this.weight = weight;
this.age = age;
}
public void initialize (String name, int age/*, int weight*/){
this.name = name;
//this.weight = null;
this.age = age;
}
public void initialize (int weight, String color, String address, int age){
this.weight = weight;
this.color = color;
this.address = address;
this.age = age;
}
public void initialize (int weight, String color, String address){
this.weight = weight;
this.color = color;
this.address = address;
}
public static void main(String[] args) {
}
}