 |
How and Why to Override the equals Method in Java
The reason the equals method in the Object class does reference equality is because it does not know how to do anything else. Remember, every class in Java is an Object (via inheritance). For the Object class's equals method to work correctly for every cl
users.csc.calpoly.edu |
 |