Question: the differences between the different spectral types of stars are primarily due to
Answer: The spectral class of a star is a short code primarily summarizing the ionization state , giving an objective measure of the photosphere 's temperature .