everything looks fine ..
but I don't know what wrong with my code?
package com.codegym.task.task05.task0510;
/*
Initializing cats
*/
public class Cat {
private String name = "kitty";
private int age = 3;
private String address = null;
private int weight = 3;
private String color = "brown";
public void initialize(int weight ,String color){
this.weight = weight;
this.color = color;
this.age = 3;
}
public void initialize(int weight , String color ,String address){
this.weight = weight;
this.color = color;
this.address = address;
this.age = 3;
}
public static void main(String[] args) {
}
public void initialize(String name){
this.name = name;
this.age = 3;
this.weight = 34;
this.color = "brown";
}
public void initialize(String name,int weight ,int age){
this.name = name;
this.age = age;
this.weight = weight;
this.color = color;
}
public void initialize(String name, int age){
this.name = name;
this.age = age;
}
}