Respuesta :

By assigning them a stellar classification. This consists of letters from hottest to coldest (O,B, A, G, K, and M).

Hope this helps!!