there inscription: com/codegym/task/task05/task0502/Cat.java:18: error: missing return statement
}
^
WHY?! something wrong with only this text:
public boolean fight(Cat anotherCat) {
//write your code here
}
package com.codegym.task.task05.task0502;
/*
Implement the fight method
*/
public class Cat {
public int age;
public int weight;
public int strength;
public Cat() {
}
public boolean fight(Cat anotherCat) {
//write your code here
}
public static void main(String[] args) {
}
}