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

Java hashcode() method?

  • in the class Object, the hashcode() method is abstract and has no body. How does it generate hashcodes for Objects before we override the hashcode() methodt if the hascode() ...show more

  • Answer:

    An abstract method has no body. It is meant for you to override the method in another class that inherits the abstract class. The abstract method doesn't actually do anything, it just forces you to override it.

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.