Specific heat capacity is defined as the amount of heat required to raise the temperature of 1 gram of a substance by 1 degree Celsius.
So, the greater the specific heat capacity of the watermelon, the longer it would stay cool after removal from the cooler.