Challenge #6

A Fraction Class.

A fraction consists of 2 integers – the numerator (num) and the denominator (denom). If the fraction is 1/2, then 1 is the numerator and 2 is the denominator.

Your fraction class should contain appropriate constructors, accessors and mutators. It should also overload the following operators:- +, -, *, /, ++, –, ==, !=, <, >, <=, >=

Write your program in 3 files –
fraction.h – a header file (interface)
fraction.cpp – an implementation file
source.cpp – a project file that demonstrates your fraction class