Friday, 17 April 2015

Pointers to Object Members (Member Functions)

The general format for defining pointer to member function is as follows

Return_type (Class_name :: * pointer_to_function)(arguments)

To get the address of the member function is as follows

Pointer_to_function = & Class_name :: member_function_name


No comments:

Post a Comment