S.R Paul wrote:How is this Possible since line 8 fails to compile?
What Stephan said.
Tip:
Always prefix overriding methods with the "@Override" annotation, viz:
//override equals()
@Override
public boolean equals(MyClass m){...
because you would then quickly discover that, as Stephan said, your method
doesn't override
Object.equals().
HIH
Winston