package com.javarush.task.task05.task0510;

/*
Кошкоинициация
*/

public class Cat {

    String name = null;
    String address = null;
    String color = "red";
    int age = 9;
    int weight = 6;


    public void initialize(String name){
        this.name = name;
        this.color = "white";
        this.age = 8;
        this.weight = 6;
    }
    public void initialize(int age, int weight, String name){
        this.name = name;
        this.age = age;
        this.weight = weight;
        this.color = "black";
    }
    public void initialize(int age, String name){
        this.weight = 20;
        this.name = name;
        this.age = age;
        this.color = "black";
    }
    public void initialize(int weight, String color){
        this.color = color;
        this.weight = weight;
        this.age = 8;
    }
    public void initialize(int weight, String color, String address){
        this.weight = weight;
        this.address = address;
        this.color = color;
        this.age = 7;
    }

    public static void main(String[] args) {

    }
}
Вылазит ошибка: method initialize(int,java.lang.String) is already defined in class com.javarush.task.task05.task0510.Cat: Cat.java, line: 34, column: 17