//=========================================================================== // Class declaration for data items. // A. Fischer, May 29, 2001 file: item.hpp //=========================================================================== #pragma once #include #include "exam.hpp" #include "ordered.hpp" //-------------------------------------------------------------------------- class Item : public Exam, public Ordered { public: Item(const char* init, int sc): Exam(init, sc){} virtual ~Item() { cout <<"Deleting Item " << key() <<"\n"; } const KeyType& key() const { return Exam::key(); } bool operator==(const KeyType& k) const { return key() == k; } bool operator< (const KeyType& k) const { return key() < k; } };