How Virtual functions call up is maintained?
Answers were Sorted based on User's Feedback
Answer / ranjeet garodia
it is not look up table.
instead it is vtable.
every object has the vptr which locate the vtable in which
there is entries for the virtual functions.
so when calling the function it ucall the respective
function through vptr.
| Is This Answer Correct ? | 9 Yes | 1 No |
Answer / guest
By using Look up tables that were added by the compile to
every class image.
| Is This Answer Correct ? | 0 Yes | 3 No |
What is a storage class in C++
What is meant by a delegate?
How does the copy constructor differ from the assignment operator (=)?
What is the difference between "overloading" and "overridding"?
What is a volatile variable in c++?
Why are arrays usually processed with for loop?
1. What does the following do: void afunction(int *x) { x=new int; *x=12; } int main() { int v=10; afunction(&v); cout<<v; } a) Outputs 12 b) Outputs 10 c) Outputs the address of v
What is time_t c++?
How do you know that your class needs a virtual destructor?
What are the advantages of c++?
Can I uninstall microsoft c++ redistributable?
What is ofstream c++?