C/C++
cppequal.txt
Associated article: Overriding the C++ Operator==
Tags: C/C++ JVM Languages
Published source code accompanying the article by Daniel E. Stevenson and Andrew T. Phillips in which they present a design that handles complex inheritance situations, then implement it in Java and C++.
Overriding the C++ Operator==
by Daniel E. Stevenson and Andrew T. Phillips
Listing One
abstract class T {
public final boolean equals(Object that) {
boolean isEqual = false;
if ((that != null) && (that instanceof T)) {
T castedThat = (T) that;
if (this....


