The Virtual tables are contructed during compile time . The compiler
create a pointer vptr to point to the vtable during but it doesn't
contain the address of the function which is declared as virtual
because it is still not loaded in memory . Becoz is suppose to link
the modules and header files together during compilation time but it
is not been loaded in memory .



The virtual table is loaded during run time becoz this time only the
objects will be created(loaded in the memory) , which cann't
determined during compile time , and the respective function pointer
address will be stored in the Vtable ..


Thanks,
Somnath Singh
NIT DGP

-- 
Somnath Singh

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to