All hot bodies radiate heat. When this heat falls on some object, a part of it is reflected, a part is absorbed and a part may be transmitted. The temperature of the object increases due to the absorbed part of the heat. An object decreases its temperature by releasing energy in the form of heat to its surroundings. And an object increases its temperature by gaining energy in the form of heat from its surroundings.