subtract method

void subtract(
  1. int amount
)

Subtracts the specified amount from the current value.

Implementation

void subtract(int amount) {
  value -= amount;
}