Feed a dog and it thinks you're god. Feed a cat and it thinks IT is god:
if (human.feedanimal() == true) { animal.type = "Dog"; human.name = "GOD"; }else{ animal.type = "Cat"; animal.name = "GOD"; }
if (human.feedanimal() == true) { animal.type = "Dog"; human.name = "GOD"; }else{ animal.type = "Cat"; animal.name = "GOD"; }
Incorrect. The cat doesn't depend on your validation of its status; if you feed it, you just increase the chance that it thinks you are a subject worthy of its time and attention.