Rowan-Classes/1st-Semester-Fall-2021/CSNP/ClassesLesson/Counter.cpp
2024-02-22 14:31:08 -05:00

32 lines
372 B
C++
Executable File

#include "Counter.h"
#include <climits>
// Counter::Counter()
// {
// maxValue = INT_MAX;
// }
void Counter::setCount(int num)
{
value = num;
}
void Counter::increment()
{
++value;
}
void Counter::decrement()
{
--value;
}
int Counter::getCount()
{
return value;
}
int Counter::getMaxValue()
{
return maxValue;
}