1
0

Horse.h 246 B

123456789101112131415161718
  1. #ifndef _HORSE_H
  2. #define _HORSE_H
  3. class Horse {
  4. public:
  5. Horse(); // default constructor
  6. bool getRacing();
  7. int getPosition();
  8. void race();
  9. void dontRace();
  10. void advance();
  11. private:
  12. int position;
  13. bool isRacing;
  14. };
  15. #endif