Site hosted by Angelfire.com: Build your free website today!
//Horse.h
/*	This is the subclass horse that has a variable speed.
	Crystal Torres
	Section 1MA3C
*/
//----------------------------

#ifndef HORSE_H
#define HORSE_H

#include "Animal.h"

class Horse:public Animal {
	public:
		// Default constructor for horse
		Horse();

		// Constructor that sets weight and name of a horse
		Horse (string,int,int);

		// instance of animal info
		virtual AnimalInfo getInfo () const;

		// return time fed
		virtual int getTimesFeed() const {return 2;}

		// species
		virtual string getSpecies() const {return "Horse";}

		// accessor for speed of the horse
		int getSpeed() const {return speed;}

	private:
		int speed;
};

#endif