Why does this code work?
if (this.age > anotherCat.age || this.weight > anotherCat.weight || this.strength > anotherCat.strength){
return true;}
else return false;
}
After all, objects were not created.
And how will anotherCat.age
work if we do not even have this class ???