The squash fruit is classified as a pepo by botanists, which is a special type of berry with a thick outer wall or rind formed from hypanthium tissue fused to the exocarp; the fleshy interior is composed of mesocarp and endocarp. The pepo, derived from an inferior ovary, is characteristic of the Squash Family (Cucurbitaceae).
In addition to the fruit, other parts of the plant are edible. Squash seeds can be eaten directly, ground into paste, or (particularly for pumpkins) pressed for vegetable oil. The shoots, leaves, and tendrils can be eaten as greens. The blossoms are an important part of native American cooking and are also used in many other parts of the world.