#include "Counter.hpp" Counter::Counter(): value_{ 0 } { // Empty constructor body } // This is if we call ++obj int Counter::operator++() { return ++value_; } // This is if we call obj++ int Counter::operator++( int n ) { return value_++; } // This is if we call --obj int Counter::operator--() { return --value_; } // This is if we call obj-- int Counter::operator--( int n ) { return value_--; } // This is if we call *obj int &Counter::operator*() { return value_; } // This is if we call *obj where // 'obj' is declared to be const int const &Counter::operator*() const { return value_; }