Home Segments Index Top Previous Next

247: Practice

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