So I was making a class the other day and used Eclipse\'s method to create the equals method when I realized that it generated the following working code:>
Mike's quite correct; you are confusing objects (instances of a class) with the class itself. The members are private to the class, not any particular instance of the class.
I recall being just as surprised about this when I was new to Java.