Whether or not a planet is composed mostly of rock or gas is set by
a. its mass.
b. its temperature.
c. its distance from the star when it formed.
d. a combination of A, B, and C