posted 13 years ago
As booleans can have 2 values, true & false, my program needs a new type of variable that has 5 states. The criteria for this concept must be:
1. Easy to understand.
2. short.
3. Hard to make a mistake.
I have come up with the following:
Define an Interface
include the interface in the program, where multiValue is the package containing the interface
The program can then be written:
Does anyone have any comments on how to make the concept better according to the 3 criteria?
Thank you