
1 Attachment(s)
Fraction class
Hi there, I am running on empty with no sleep. I am trying to complete a programm for school and I am getting frustrated. I just can't tkink anymore.
I have to build a Fraction class based upon the following specifications:
· Have two integer data members, for nominator and denominator. It should also have a static data member to count the number of fraction objects created.
· Have the following member functions
 addFraction, which should add the two fraction objects and return the result
 subFraction, which should subtract a fraction from another fraction object and return the result
 divideFraction, which should divide one fraction with another fraction object and return the result
 multiplyFraction, which should multiply two fraction objects and return the result
 Constructor functions
 Accessor and mutator functions
 numberofObject, which should return the value of count.
The main() was already given.
I have attached what I have so far.