#ifndef DIGIT_H #define DIGIT_H namespace pool_tutorial { // A simple digit class class Digit { public: // Default constructor Digit( int index = 0, int value = 0 ); // Copy constructor Digit( const Digit& rhs ); // Destructor virtual ~Digit(); // Assignment operator Digit& operator=( const Digit& rhs ); // access methods int index() const; int value() const; // Setters void setIndex( int index ); void setValue( int value ); private: // The index of the digit int m_index; int m_value; }; } #endif