Answer:
Phenols and the enzyme phenolase are found in the cells of the apple, and when these are exposed to oxygen in the air, for example through slicing, the oxygen causes a reaction. The phenolase changes the phenols into melanin, which has a brown colour.
I hope this helps...