|
-
May 31st, 2002, 10:46 AM
#3
The details regarding where a function is stored is not available in an object always. When a class contains no virtual fns, the address resolution of the functions happen at compile time and i dont think you have an API to access that.
The scenario is different when there are virtual fns in a class. Every object contains a pointer to the virtual function table. The address of the function to be called is calculated at run time in an implementaion dependent way. you might try out on your implementation how it is actually done.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|