An apple becomes rotten when you bite it or cut it or just leave it in the sun, the apple starts to rot and then decompose.
because of oxygen
rotten apple will look smushy. well, you know. you will know if it is rotten if it doesn't look good... (-_-