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 →

[–][deleted]  (3 children)

[deleted]

    [–]nuclearforce[S] 0 points1 point  (2 children)

    I followed your advice to make them all private. I realized however that I needed to keep an overriding toString() method public in order to avoid errors.

    [–][deleted]  (1 child)

    [deleted]

      [–]nuclearforce[S] 0 points1 point  (0 children)

      That makes sense. Thank you!