In the final part where we are given weight, address, and color and told to initialize everything except name, I can't get it to accept.
package com.codegym.task.task05.task0510;
/*
Initializing cats
*/
public class Cat {
String name;
int age=3;
int weight;
String address;
String color;
public void initialize(String name){
this.name = name;
this.age = 3;
this.weight = 3;
this.color = "white";
}
public void initialize(String name, int weight, int age){
this.name = name;
this.weight = weight;
this.age = age;
this.color = "white";
}
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 = color;
this.age = 3;
}
public void initialize(int weight, String address, String color){
this.weight = weight;
this.address = address;
this.color = color;
age = 3;
}
public static void main(String[] args) {
}
}