public boolean fight(Cat anotherCat) { int agePlus = this.age > anotherCat.age ? 1 : 0; //что значит это "1 : 0", как это выполняется программой? int weightPlus = this.weight > anotherCat.weight ? 1 : 0; int strengthPlus = this.strength > anotherCat.strength ? 1 : 0; int score = agePlus + weightPlus + strengthPlus; return score > 2; // return score > 2 ? true : false; }