sum property

double sum
getter/setter pair

The sum total of all the readings. Used to update average.

Implementation

double sum = 0;