单项选择题

若重写了某个类的hashCode方法,则必须同时重写它的哪个方法()

A.contains
B.clone
C.toString
D.equals