walakum salam nadeem bhai!!!
Now you give correct requirement!!!
we can declare a pointer to anf member functions which has any number and any type of arguments. But return type will be same .
int (abc:: *ptr) ( . . .)
I did’nt try to take return type as as template. I dont template will woek or not…