Stars are black bodies. A black body is an object that absorbs 100 percent of all electromagnetic radiation (that is, light, radio waves and so on) that falls on it. A common image here is that of a brick oven with the interior painted black and the only opening a small window. All light that shines through the window is absorbed by the interior of the oven and none is reflected outside the oven. It is a perfect absorber. As it turns out, this definition of being perfect absorbers suits stars very well! However, this just says that a blackbody absorbs all the radiant energy that hits it, but does not forbid it from re-emitting the energy. In the case of a star, it absorbs all radiation that falls on it, but it also radiates back into space much more than it absorbs. Thus a star is a black body that glows with great brilliance! (An even more perfect black body is a black hole, but of course, it appears truly black, and radiates no light.)