What's wrong here ?
package com.codegym.task.task05.task0510;
/*
Initializing cats
7. The class must have an initialize method that takes a name as an argument,
but initializes all variables except the address.
8. The class must have an initialize method that takes
a name, weight, and age as arguments, but initializes all variables except the address.
9. The class must have an initialize method that takes
a name and age as arguments, and initializes all variables except the address.
10. The class must have an initialize method that takes
a weight and color as arguments, and initializes all variables except the name and address.
11. The class must have an initialize method that takes
a weight, color, and address as arguments, but initializes all variables except the name.
*/
public class Cat {
//write your code here
String name = null;
int age ;
int weight ;
String address = null ;
String color;
public void initialize(String name) {
this.name = name;
this.age = 21;
this.weight = 30;
this.color = "Violet";
}
public void initialize(String name, int weight, int age) {
this.name = name;
this.age = age;
this.weight = weight;
this.color = "Blue";
}
public void initialize(String name, int age) {
this.name = name;
this.age = age;
this.weight = 30;
this.color = "Green";
}
public void initialize(int weight, String Color) {
this.age = 25;
this.weight = weight;
this.color = color;
}
public void initialize(int weight, String Color, String address) {
this.age = 25;
this.weight = weight;
this.address = address;
this.color = color;
}
public static void main(String[] args) {
}
}