2. Define a class called Praction to represent numerator and denominator of a fraction. The should have mult, and defuit
Posted: Fri May 20, 2022 1:04 pm
2. Define a class called Praction to represent numerator and denominator of a fraction. The should have mult, and defuit con functions. Also include the member function definitions listed below. (40p) A public member function called print that takes no parameters. The member function must print data slots in the form of a fraction A public member function called validate with no parameters. The member function check the denominator is not rero. The member function should return true if the denominator is a zero, otherwise, it should return . /*PASTE CODE HERE- The content of the implementation file only /