i have one interesting question over here ……….
Is it possible to create a generic pointer (generic pointer to member functions) which can point to all the member functions of a class
Ex : Code: ( cpp )
//Body of fun1<br />
//Body of fun2<br />
};//End of class
here a generic pointer which can hold the address of functions fun1 as well as fun2
Comments will be appreciated.!!!!
Assalmaulaikum Asad, This is not wot i wanted… i wanted to have a pointer to a member function and not a pointer to object….
Ex: int (abc:: *ptr)(int );here ptr is an pointer to a member function of the class…
something like this which is very generic and can hold the address of every function of that class..