I thought I did this correctly this time, but clearly not. I'm obviously missing something that I'm not seeing.
package com.codegym.task.task05.task0517;
/*
Creating cats
*/
public class Cat {
//write your code here
String name=null;
int weight;
int age;
String color;
String address=null;
public Cat(String name)
{
this.name="luna";
this.weight=20;
this.age=6;
this.color="grey";
}
public Cat(String name, int weight, int age)
{
this.name="sherlock";
this.weight=15;
this.age=8;
this.color="grey";
}
public Cat(String name, int age)
{
this.name="kenny";
this.weight=25;
this.age=7;
this.color="black";
}
public Cat(int weight, String color)
{
this.weight=9;
this.age=7;
this.color="black and white";
}
public Cat(int weight, String color, String address)
{
this.weight=10;
this.age=12;
this.color="orange";
this.address="wall street";
}
public static void main(String[] args) {
}
}