I know that to create an optional parameter in a function you can do this:
void exemplo(int a,int b=0);
But how do I do this in a function of a class
ex:
class Exemplo{
public:
void nada(int,int);
};
void Exemplo::nada(int a,int b){}
This would be an example with "normal" parameters, to try to leave the optional (b) I did:
void Exemplo::nada(int a,int b=0){}
void nada(int,int);
How can I solve this problem, remembering that I do not want a constructor with optional parameters, but rather a different function.