Vegetable seeds are obtained through the process of plant flowering, pollination, and fruiting.
There are stamens and pistils in the flowers of green vegetables. The stamens produce pollen and the pistils are responsible for producing fruits. During flowering, the pollen from the stamens will float to the stigmas of the pistils for pollination. After successful pollination, the pistil develops into a fruit, which contains the seeds. Once the seeds are mature, they are ready to be harvested and used for planting.