How does a plant make fruits distinct from other plants?

Is the science of it Organic Chemistry?

Something I want to study, don't know where to start. Like... an apple tree will produce apples. Plant a raspberry bush in the same soil and air... it produces raspberries. How are they producing such distinct fruits?

How does a plant make fruits distinct from other plants?
How does a plant make fruits distinct from other plants?
Post Opinion