NobleBlocks
Public

Implementing object equivalence in Java using the template method design pattern

Published • Jan 11, 2003
NobleIDNI3P52W92R85S25
Authors:
Daniel E. Stevenson
,
Andrew T. Phillips

Abstract

A standard practice in object-oriented programming is to implement an operation, called equals in Java, for testing the equality of two objects. The equals method should be defined for every new Java class, but because of the intricacies of inheritance, casting, and dynamic typing, equals is often q...

Finding related papers...

Discussions

(0)

No comments yet

Be the first to share your thoughts!