A star is a spheroid made of plasma and is held together by its gravity and is like the sun is formed by the fusion f the gases primarily the hydrogen and helium and the heavy elements. And as a result of this fusion the release of energy from the core and star expands in mass.