If I wanted a function in a class to take one parameter of either int or string, would I have to make to different functions or is there a way to declare it so the program will accept either type in one function. I tried using
void fun(string s=" ", int=-1) but this get an error if I call fun(int i); Any help would be appreciated