How can I overload equal method to make different objects have same hashcode value in unordered_multimap?

Ava hashcode() method?

  • in the class Object, the hashcode() method has no body. How does it generate hashcodes for Objects without us overriding the hashcode() method

  • Answer:

    I think you mean "Java", right? The hashCode() method is declared "native", which means it's implemented in code compiled into a dynamically-loadable module (like a *nix shared library or windows DLL.) Try a search for "java native methods" for more technical information, including how to write your own native methods.

PGXKVEHZIA22CHETAIFQU5R2DE at Yahoo! Answers Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.