How Virtual functions call up is maintained?

Answers were Sorted based on User's Feedback



How Virtual functions call up is maintained?..

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

How Virtual functions call up is maintained?..

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

Post New Answer

More C++ General Interview Questions

What is the most powerful coding language?

0 Answers  


which operator is used for performing an exponential operation a) > b) ^ c) none

0 Answers  


How do you establish a has-a relationship?

0 Answers  


What is a stack c++?

0 Answers  


What is the main function c++?

0 Answers  


Why do we need runtime polymorphism in c++?

0 Answers  


What is the best c++ book?

0 Answers  


Define upcasting.

0 Answers  


What is a pointer with example?

0 Answers  


5. Can inline functions have a recursion?

4 Answers  


Is c++ a programming language?

0 Answers  


Describe delete operator?

0 Answers  


Categories