I have a class
class Rational
{
private int _n;
private int _m;
public Rational(int n, int m)
{
_n = n;
_m = m;
}
}
But m
should be > 0
. What should I do to notify user that he enter incorrect data to constructor?