Composition: Complex number in fraction

I have the following classes for complex numbers and fractions:

Code:

`class Fraction {`

int top, bottom;

public:

Fraction(int a = 0, int b = 0);

~Fraction(){}

void displayFraction();

void operator= (Fraction x);

Fraction operator+ (Fraction x);

Fraction operator- (Fraction x);

Fraction operator* (Fraction x);

Fraction operator/ (Fraction x);

};

Fraction::Fraction (int a, int b) {

top = a; bottom = b;

}

Code:

`class complexClass {`

double x, y;

public:

complexClass(double r=0, double i=0): x(r), y(i) {}

~complexClass(){}

void displayComplex(void);

void operator= (complexClass a) {x=a.x; y=a.y;};

complexClass operator+ (complexClass a);

complexClass operator- (complexClass a);

complexClass operator* (complexClass a);

complexClass operator/ (complexClass a);

complexClass operator^ (double n);

};

I am supposed to combine their functionality together so that I can input fractions of complex numbers and perform arithmetic operations on them. How do I go about doing it?

I tried creating the constructor Fraction(complexClass a) but I'm stuck at the private variable assignment.