单项选择题

A.a.hashcode()==b.hashcode()
B.a.age==b.age
C.a.toString().equals(b.toString())
D.a.name.equals(b.name)