Created
June 17, 2017 20:26
-
-
Save worksofliam/3bffa99960fe3b2f3f298349b4c7330b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class expRange | |
{ | |
public int _low; | |
public int _high; | |
public expRange(int low, int high) | |
{ | |
_low = low; | |
_high = high; | |
} | |
public bool inRange(int num) | |
{ | |
return (num >= _high); | |
} | |
public int getVal() | |
{ | |
return (_high - _low) + 1; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment