C++ Programming
Classes: A Deeper Look Rational Class Create a class calledRational for performing arithmetic with fractions. Write a programto test your class. Use integer variables to represent the privatedata of the class—the numerator and the denominator. Provide aconstructor that enables an object of this class to be initializedwhen it’s declared. The constructor should contain default valuesin case no initializers are provided and should store the fractionin reduced form. For example, the fraction: 2 – 4 would be storedin the object as 1 in the numerator and 2 in the denominator.Provide public member functions that perform each of the followingtasks: a)
PayPal Gateway not configured
PayPal Gateway not configured