Write a Die class holding a number of sides and a current face starting at 1. setFace changes the face, but only to a value from 1 up to the number of sides. getFace returns it.
class Die { Die(int sides); void setFace(int face); int getFace(); }
Examples
There are also 4 hidden tests you can't see. Solve the problem, not the examples.