Почему у age надо поставить this, а у anotherCat.age не надо? if (this.age > anotherCat.age) countCat1++; else if (this.age < anotherCat.age) countCat2++; if (this.weight > anotherCat.weight) countCat1++; else if (this.weight < anotherCat.weight) countCat2++; if (this.strength > anotherCat.strength) countCat1++; else if (this.strength < anotherCat.strength) countCat2++;