summaryrefslogtreecommitdiff
path: root/counter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'counter.cpp')
-rw-r--r--counter.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/counter.cpp b/counter.cpp
new file mode 100644
index 0000000..c60b7b4
--- /dev/null
+++ b/counter.cpp
@@ -0,0 +1,13 @@
+#include "counter.h"
+
+Counter::Counter(int start_value) {
+ value = start_value;
+}
+
+void Counter::increment() {
+ value++;
+}
+
+int Counter::get_value() const {
+ return value;
+}