Question: for c additional requirements use a template so the class...
Use a template so the class works with any kind of number (i.e. int, float, double)
fractionType<int> num1(5, 6);
fractionType<float> num1(5.1, 6.2);
Tip: get your class working with integer values first for numerator and denominator and convert to a template after it is working with ints. When converting to a template you may need to move all of your implementation into the .h header file.