Уже вроде и материал понятен и видосы посмотрел, но тут уже ничего не понятно , что он делает? что его не устраивает?поясните пожалуйста. Пробовал и присваивать инициализированным параметрам значения, и приватным, ничего не проходит.
package com.javarush.task.task05.task0517;
/*
Конструируем котиков
*/
public class Cat {
private String name ;
private int age = 2;
private int weight = 3;
private String address ;
private String color;
public Cat(String name){
this.name = name;
this.age = age;
this.weight = weight;
this.color = color;
}
public Cat(String name,int weight, int age){
this.name = name;
this.age = age;
this.weight = weight;
this.color = color;
}
public Cat(String name, int age){
this.name = name;
this.age = age;
this.weight = weight;
this.color = color;
}
public Cat(int weight, String color){
this.name = name;
this.age = age;
this.weight = weight;
this.color = color;
}
public Cat(int weight, String color, String address){
this.age = age;
this.weight = weight;
this.address = address;
this.color = color;
}
public static void main(String[] args) {
}
}