Pensky-Alek-ReShapeUp

Hi Don,

Is that code wrong because I dont have a method that says what that the
constructor does?
On Dec 4, 2014 9:37 PM, "Don Irwin" <notifications@github.com> wrote:
>
> In src/Line.java:
>
> > @@ -1 +1,40 @@
> > -// A Line object represents a line defined by a pair of Points.
> > +public class Line
> > +{
> > +  private Point start;
> > +  private Point end;
> > +
> > +  public Line()
> > +  {
> > +    start.setX(0);
> > +    start.setY(0);
> > +    end.setX(0);
> > +    end.setY(0);
>
> same as above - these four lines should be written as start = new
Point(); - as is, this constructor will fail because center has been
declared, but hasn't been initialized (i.e. new Point())
>
> —
> Reply to this email directly or view it on GitHub.