They're types of food! By putting Food
in parentheses after the Sandwich
class, we define Sandwich
as a subclass of Food
.
Psst: Sandwich
is said to be a subclass of Food
, its superclass.
Might it be that sandwiches are a type of food, just like cookies?