Which of the following is/are used to classify a star based on its temperature and luminosity?

A. Line spectra
B. Blackbody spectrum
C. Parallax measurements
D. Hertzsprung-Russell diagram