Ideally, the hashcodes of two objects

A) should be equal when the objects are equal, and different when the objects have different values
B) should be equal then the objects belong to the same class, and be different when the objects belong to different classes
C) should be equal when the objects are instantiated with the same type from the same generic class
D) should divide each other only when the class of one of the objects extends the class of the other

A) should be equal when the objects are equal, and different when the objects have different values

Computer Science & Information Technology

You might also like to view...

Suppose str = "ABCDEFGHI". The output of the statementcout << str.length() << endl; is ____.

A. 7 B. 8 C. 9 D. 10

Computer Science & Information Technology

In C, true evaluates to _____ and false evaluates to _______.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology