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