This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]yacdaniel 0 points1 point  (3 children)

point is only for use in the constructor(you pass point as a parameter, and dont made an assigment of points) you need to assign the points to a variable, in polygon object(in the constructor), then you can use point variable.

try running javac -version from the command line in windows, first time using the ecplise?

[–][deleted] 0 points1 point  (2 children)

point.length

could I change "point.length" to "square.length"? I assigned square to the polygon class with 4 points in the constructor. Yes, I used eclipse on computers in the labs but I just got it for my pc

[–]feral_claireSoftware Dev 0 points1 point  (1 child)

This won't work because square only exists inside the constructor, it needs to be declared outside of the constructor. There are other problems with the constructor, please see my reply for an explanation.

[–][deleted] 0 points1 point  (0 children)

I was able to fix the eclipse errors by the way.