Friday 17 April 2015

Accessing Member Function using Object


The pointer to an object member can be obtained by applying the address of operator & to a fully qualified class member-name. The general format for accessing member functions using the object is

(Object_name.*pointer_to_Member_Function)(arguments)

No comments:

Post a Comment