#ifndef FRACTION_H
#define FRACTION_H
class Fraction
{
private:
int numerator;
int denominator;
public:
//Constructors
Fraction(int n = 1, int d = 1)
{ numerator = n;
denominator = d; }
Fraction(int d)
{ if (d < 0)
cout << "Denominator cant be zero."; }
//Mutator Functions
//Accessor Functions
};
#endif
how do would i write an overloaded operator function to add two fractions together, to go in the header? if someone can tell me how to do that, i can figure out the other things. also, does my code look correct so far?