any thing is wrog in the code
package com.codegym.task.task05.task0510;
/*
Initializing cats
*/
import java.io.*;
public class Cat
{
private String name = "aaa", color = "aa" , address = "aaa";
private int age = 12, weight = 2;
public Cat(String name) { //name method
this.name = name;
this.weight = 10;
this.age = 2;
this.color = "blue";
}
public Cat(String name, int weight, int age) { //naw method
this.name = name;
this.age = age;
this.weight = weight;
this.color = "black";
}
public Cat(String name, int age) { //name and age
this.name = name;
this.age = age;
this.weight = 10;
this.color = "black";
}
public Cat(int weight, String color) { //c and w method
this.color = color;
this.weight = weight;
this.age = 2;
}
public Cat(int weight, String color, String address) { //caw method
this.color = color;
this.address = address;
this.weight = weight;
this.age = 2;
}
public static void main(String[] args)
{
Cat c1 = new Cat("aaaa");
Cat c3 = new Cat("aaaa",10,3);
Cat c2 = new Cat("aaaa", 2);
Cat c4 = new Cat(2, "aaaa");
Cat c5 = new Cat(2,"blue","aaaa");
}
}