Question: Hello, Im haveint trouble understanding the problem, could you please expalin in details or(baby steps) on how to do the problem So i can understand
Add the following overloaded operators to the class FractionType: 1) operator+ 2) operator- 3) operator/ 4) operator* Write a driver program to test the FractionType class provided in the Chapter 1 Source Code Here is an alternate sample of driver code: Fraction Type fraction1; fraction. Initialize(3, 5); Fraction Type fraction2; fraction2.Initialize(5, 6); Fraction Type fractionSum = fraction1 + fraction2; //use operator+ Here is the signature of the operator+: FractionType operator+(const FractionType & addend); and, the implementation in the .cpp file: Fractiontype FractionType:: operator+(const FractionType& addend){ FractionType frac; //Finish code here. return frac; } Keep in mind that if we don't implement the function within the declaration of the class, then we have to prepend the class name with the scope resolution operator before the function name
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
