What is the difference between a fruit and vegetable?

Fruits contain seeds and are usually developed from the flowering part of a plant while Vegetables are an edible plant or part of a plant.