For example in the following code:
class mixedFraction {
public:
mixedFraction(); //constructor
void add(mixedFraction f); //The functoin I want to define in cpp file
}
I know that to declare constructor in cpp is
<class name> :: <constructor name>(<type> <name>, ...);
But I try the samething with function it is wrong
mixedFraction::void add(mixedFraction f);
How can I do to make it correct?