I can't seem to figure out how to chain constructors when the constructor I'm trying to call is supposed to use values passed to the constructor I'm calling it from.
I tried this:
public BoundingBox(Point a, Point b)
{
Point[] points = {a, b}
this(points);
}
but I'm told that the call to this must be on the first line of the constructor.
I'm trying to call this constructor
public BoundingBox(Point[] input)
{
//do some work
}
Ideally, I could chain these constructors. Otherwise, I may have to restructure my code.