A vegetable is the edible portion of a plant.
Fruits are the ripened part of a flowering plant that contains the seeds.
All fruits are vegetables. Not all vegetables are fruits.
Nuts are strictly a particular kind of dry fruit that has a single seed, a hard shell, and a protective husk.