// motor.h - Motor class definition #ifndef __CMOTOR_H #define __CMOTOR_H #include #include using namespace std; class CMotor { public: CMotor() { } CMotor( const string & id ); string get_ID() const; void set_ID(const string & s); virtual void Display() const; // Display a motor on the console. virtual void Input(); // Input a motor from the user. bool operator <( const CMotor & M2 ) { return m_sID < M2.m_sID; } private: string m_sID; // the motor identification number }; #endif