The vegetables are classified based on the edible part of the plant: leaves (like lettuce), roots (like carrot), bulbs (such as onions), and many others. Alternatively, fruits such as tomatoes and seeds such as peas are commonly referred to as vegetables.