Выручайте не понимаю , не укладывается в голове максимально просто и подробно пожалуйста распишите СПАСИБО
package com.javarush.task.task05.task0510;
/*
Кошкоинициация
*/
public class Cat {
//напишите тут ваш код
String name = " Vaska " ;
String color = " Blue" ;
String address = null;
int age = 12 ;
int weight = 1;
public void initialize (String name){
this.name = "Vaska";
this.color = color;
this.age = age ;
this.weight = weight;
}
public void initialize (String name , int weight, int age){
this.name = "Zalypa";
this.weight = 2;
this.age = 12;
this.color = color;
}
public void initialize (String name,int age){
this.name = "Pupok";
this.age = 3;
this.color = color;
this.weight = weight;
}
public void initialize (int weight ,String color){
this.weight = 12;
this.color = "black";
this.age = age;
}
public void initialize (int weight ,String color ,String address) {
this.weight = 34;
this.color = "green";
this.address = "Shkolnay_Street";
this.age = age;
}
}