The apple is a fruit.
The word “vegetable” is often used to describe plants that are edible as well as plants primarily grown for their roots, stems, leaves, shoots and flowers. Produce from the Cucurbita plant genus includes pumpkins, squashes, zucchini and cucumbers these are also considered vegetables. In general all members of the tomato family including eggplant and mushrooms (both white and brown) are referred to as vegetables. Finally things like lettuce or herbs would be called vegetables because they’re primarily meant to be eaten raw in salads or on sandwiches respectively.