anything that bears or is a seed is considered a fruit. There are different kinds of fruit, ie nuts are a kind of fruit. Vegetables are any part of the plant that doesn't have to do with making new plants. Lettuce is a leaf, carrot is a root, celery is a stem.
This makes the distinction some are making between the seeds inside the pod and the pod itself moot.