The question reads: "Suppose you want to use a HashSet for element objects of a type BigElement implemented by some code you’re not supposed to change, yet doesn’t have a hashCode() implementation. Suppose it has an equals method based on its name field, like SimpleStudent, Fig. 6.35, and getters for all fields. What can you do? (Don’t forget to add “private” to SimpleStudent’s fields.) "
I'm confused, are we working with a class called BigElement or the Simple Student class? From what I've seen in the book, SimpleStudent already has a hashCode() method based upon the name variable, so I'm a bit uncertain as to how to approach this one.
Thanks,
Chris