| Author |
equals() method overide from which class
|
sumanta panda
Ranch Hand
Joined: Jun 23, 2008
Posts: 224
|
|
Dear All,
In Java equals() method overide from which class?
Thanks and Regards,
Sumanta Pnada
|
 |
Joanne Neal
Rancher
Joined: Aug 05, 2005
Posts: 3011
|
|
If you create a new class without an equals method or an extends clause and you try to call the equals method on that class it works doesn't it ?
Therefore your class must have inherited the equals method from one of its parents. Work your way up the inheritance tree of your class and find which one implements equals.
|
Joanne
|
 |
 |
|
|
subject: equals() method overide from which class
|
|
|