posted 17 years ago
i just want to know if my understanding of overriding hashCode() and equals() is clear by showing you an example
i.e. in the equals() method i've also add a condition to match the hashCode(), so that when two instance of this class is created and call its equals methods, it doesnt need to also run the hashCode method, as it is done already in the overriding equals method
[ August 20, 2006: Message edited by: Firman Drage ]