ΡΡΠΎ Π½Π΅ ΡΠ°ΠΊ Π½Π°ΠΏΠΈΡΠ°Π»?ΠΏΠΎΠΌΠΎΠ³ΠΈΡΠ΅
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;
this.age = age;
this.weight = weight;
this.color = color;
this.address = "null";
}
public void initialize(String name,int weight,int age) {
this.name = name;
this.age = age;
this.weight = weight;
this.color = color;
this.address = "null";
}
public void initialize(String name,int age) {
this.name = name;
this.age = age;
this.weight = weight;
this.color = color;
}
public void initialize(int weight,int color) {
this.name = "null";
this.age = age;
this.weight = weight;
this.color = "null";
this.address = "null";
}
public void initialize(int weight,int color,String address) {
this.age = age;
this.weight = weight;
this.color = "null";
this.address = address;
this.name = "null";
}
public static void main(String[] args) {
}
}