class Domain
{
private double start;
private double end;
private double delta;
public Domain(double s, double e, double d)
{
start = s;
end = e;
delta = s;
try
{
if (delta == 0)
throw new ArgumentException();
}
catch (ArgumentException e)
{
Console.WriteLine(e.Message);
}
try
{
if (start < end && delta < 0)
throw new ArgumentException();
}
catch (ArgumentException e)
{
Console.WriteLine(e.Message);
}
try
{
if (start > end && delta > 0)
throw new ArgumentException();
}
catch (ArgumentException e)
{
Console.WriteLine(e.Message);
}
}
I really don't think this is the right interpitation of what the question is asking, where am I going wrong?

New Topic/Question
Reply



MultiQuote





|