Define an isFood predicate. Try your predicate on instances of the Object, Vegetable, and Food classes.
isFood
Object
Vegetable
Food