class DoubleLink : public Link { public: // data area double theValue; // constructor DoubleLink (double v) : theValue(v) {} // operations int operator == (Link * d) { return thisValue == ((DoubleLink *) d)->theValue; } };