C++
int main() { Webcounter wc; wc.reset(); cout << wc.get() << endl; //should be 0 wc.hit(); wc.hit(); cout << wc.get() << endl; //should be 2 wc.reset(); cout << wc.get() << endl; //should be 0 wc.set(3000); cout << wc.get() << endl; //should be 3000 wc.set(-23); cout << wc.get() << endl; //should be 0 return 0; }