Page 1 of 1

C++ Please Define a class called FractionType to represent numerator and denominator of a fraction. The class should hav

Posted: Fri May 20, 2022 3:28 pm
by answerhappygod
C++ Please
Define a class called FractionType to represent numerator and
denominator of a fraction. The class should have mutator, accessor,
and default constructor functions. Also, include the member
function definitions listed below: (40pts)
A public member function called print that takes no parameters.
The member function must print data values in the form of a
fraction.
A public member function called validate with no parameters. The
member function check if the denominator is not a zero. The member
function should return true if the denominator is a zero,
otherwise, it should return false.