将函数合并到类中

refactorgram

function base(aReading) {...}
function taxableCharge(aReading) {...}
function calculateBaseCharge(aReading) {...}

image/svg+xml

class Reading {
  base() {...}
  taxableCharge() {...}
  calculateBaseCharge() {...}
}