I have overridden equals()
and hashCode()
in my ClassA.
ClassA {
//overridden equals() and hashCode()
}
ClassB extends ClassA.
ClassB extends ClassA{
//....
}
Now if my code calls classBInstance.equals(classBInstanceTwo)
, does this call ClassA's equals
method?
Thanks!