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

How would you use the functions memcpy(), memset(), memmove()?

0 Answers  


What is c++ 11 and c++ 14?

0 Answers  


Write some differences between an external iterator and an internal iterator? Describe the advantage of an external iterator.

0 Answers  


The "virtual" specifier in a member function enables which one of the following? a) Monmorphism b) Late binding c) Metamorphism d) Solomorphism e) Inheritance

4 Answers   Quark,


What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.

0 Answers  






What is the difference between structure and class?

0 Answers  


What is const in c++?

0 Answers  


What do you mean by enumerated data type?

0 Answers  


What is the difference between the functions memmove() and memcpy()?

0 Answers  


What is the Standard Template Library?

1 Answers  


What is the use of ::(scope resolution operator)?

0 Answers  


When does a name clash occur?

1 Answers  


Categories