// Fraction.h - wdg 2009 #ifndef FRACTION_H #define FRACTION_H #include using namespace std; class Fraction { public: Fraction(int whole); Fraction(int n,int d); Fraction(const Fraction & other); Fraction operator+(const Fraction & other) const; Fraction operator*(const Fraction & other) const; bool operator==(const Fraction & other ) const; friend ostream & operator<< (ostream & out, const Fraction & fraction); private: int numer; int denom; }; #endif