На что ругается компилятор?
package com.javarush.task.task05.task0502;
/*
Реализовать метод fight
*/
public class Cat {
public int age;
public int weight;
public int strength;
public Cat() {
}
public boolean fight(Cat anotherCat) {
int catPower = weight * strength / age;
int anotherCatPower = anotherCat.weight * anotherCat.strength / anotherCat.age;
return catPower > anotherCatPower;
}
public static void main(String[] args) {
cat Cat = new cat(6,1,1);
cat anotherCat = cat(2,2,1);
}
}