P
pramod8378
#include <iostream.h>
class Simple {
public :
void memfunction()
{
cout << "Hello I am in memFunction" ;
}
};
Simple *objSimple ;
void wrapper()
{
/* how we are able to access the member function , when we had not
created an object ? then wht's the use of Static meber functions ?
*/
objSimple->memfunction();
}
int main()
{
wrapper();
exit(0);
}
how wrapper function is calling the member function , without creating
the object ?
Thanks in advance .
class Simple {
public :
void memfunction()
{
cout << "Hello I am in memFunction" ;
}
};
Simple *objSimple ;
void wrapper()
{
/* how we are able to access the member function , when we had not
created an object ? then wht's the use of Static meber functions ?
*/
objSimple->memfunction();
}
int main()
{
wrapper();
exit(0);
}
how wrapper function is calling the member function , without creating
the object ?
Thanks in advance .