public Circle(CartPt loc, int radius) { _loc = loc; _radius = radius; }
public Square(CartPt loc, int size) { _loc = loc; _size = size; }
public abstract bool Contains(CartPt pt);
public bool Contains(CartPt pt) { throw new System.NotImplementedException(); }
public bool Contains(CartPt pt) { return((_nw.X <= pt.X) && (pt.X <= _nw.X + _size) && (_nw.Y <= pt.Y) && (pt.Y <= _nw.Y + _size)); }
public Square(CartPt nw, int size, string color) { _nw = nw; _size = size; _color = color; }