increment method

void increment()

Reassign the state by adding 1

Implementation

void increment() {
  add(1);
}