Пж
package com.javarush.task.task05.task0510;
/*
Кошкоинициация
*/
public class Cat {
String name;
int age;
int weight;
String address;
String color;
public void initialize(String name){
this.name = name;
}
public void initialize(String name, int weight, int age){
this.name = name;
this.age = age;
}
public void initialize(String name, int age){
this.name = name;
this.age = age;
}
public void initialize(int weight, String color){
this.weight = weight;
this.color = "Gray";
}
public void initialize(int weight, String color, String address){
this.weight = weight;
this.color = "color";
this.address = address;
}
public static void main(String[] args) {
}
}