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 the most powerful coding language?
which operator is used for performing an exponential operation a) > b) ^ c) none
How do you establish a has-a relationship?
What is a stack c++?
What is the main function c++?
Why do we need runtime polymorphism in c++?
What is the best c++ book?
Define upcasting.
What is a pointer with example?
5. Can inline functions have a recursion?
Is c++ a programming language?
Describe delete operator?