![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
A sixth virtue of procedure abstraction is that you can change the way a computation is
done. If you find a way to reduce by one-third your body's ability to
metabolize fat, for example, you could adjust your computation of fat
calories to account for your marvelous discovery. Yet again, you would not
need to find all the places where calories are computed from fat grams; you
would need to change only the definition of the fatToCalories
method.