In: Computer Science
Question 2: Create a class Fract fraction with two private integer data members: num (Numerator) and den (denominator). write code for:
Part A) class declaration header file
Part b) constructor that validates input (prevent 0 on the denominator in a fraction simplified fraction that is not reduced, avoids negative denominators) with default arguments 0 and 1.
Part c)Two fractions with prototype Fract add (fract) and Fract multiply (fract) completing the usual addition and multiplication
Part d) Just all fractions by writing a short test driver that creates two fractions with the values 3/6 and ⅔ and prints there sum and product
C++ language