Implement the class defined in the attached header file.you also need to implement a test program to test the validity ofyour implementation. your test program must use all overloadedoperators and implemented functions.
# ifndef RATIONAL_H
# define RATIONAL_H
// forward references
class ostream;
class istream;
//
// class rational
// rational number data abstraction
//
class rational {
public:
// constructors
rational ();
rational (int);
rational (int, int);
rational (const rational&);
// accessorfunctions
int numerator ()const;
int denominator () const;
// assignments
void operator = (const rational &);
void operator += (const rational &);
void operator -= (const rational &);
void operator *= (const rational &);
void operator /= (const rational
PayPal Gateway not configured
PayPal Gateway not configured