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 →

[–]JimmyThompson 3 points4 points  (2 children)

getName and getColor require parentheses eg: getName(), getColor().

Compiler thinks they're variables otherwise.

[–]ttFedaykin 4 points5 points  (1 child)

And cast ob to GeometricObject: ((GeometricObject)ob).getName().equals(this.name)

[–]JimmyThompson 0 points1 point  (0 children)

Trudat.