What do these two changes have in common?
compost rotting
cooking an egg
A. Both are caused by cooling.
B. Both are chemical changes.
C. Both are only physical changes.
D. Both are caused by heating.
Answer with the option's letter from the given choices directly.

B