A dicotyledonous plant bears flowers, but never produces fruits and seeds. The most probable cause for the above situation is
In dioecious plants, the unisexual flower is either staminate, i.e. bearing stamens only or is pistillate bearing only pistil or carpel. The ovary ripens to form the fruit and the ovules ripen to form the seeds. So, in this situation plant is dioecious and bears only staminate flowers.