The heat capacity of a body depends on
We know
C=heat capacity
ΔQ=heat given
ΔT=change in temperature
As heat capacity is the heat given to the body to raise its temperature by unit degrees.
Heat capacity depends on the material of the body and mass of it.