summaryrefslogtreecommitdiff
path: root/counter.cpp
blob: c60b7b43bc42debb84eab669f8cab3244b3139bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "counter.h"

Counter::Counter(int start_value) {
  value = start_value;
}

void Counter::increment() {
  value++;
}

int Counter::get_value() const {
  return value;
}