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

Is it possible to write a c++ template to check for a function's existence?

0 Answers  


what is polymorphism?

14 Answers   Accenture,


What is the this pointer?

0 Answers  


Explain the difference between struct and class in terms of access modifier.

0 Answers  


Write a corrected statement in c++ so that the statement will work properly. if (x = y) x = 2*z;

2 Answers  






Explain register storage specifier.

0 Answers  


Disadvantages of c++

8 Answers   HCL,


What is the difference between while and do while loop? Explain with examples.

0 Answers  


Can we make any program in c++ without using any header file and what is the shortest program in c++.

0 Answers   MCN Solutions,


When does a 'this' pointer get created?

0 Answers  


If dog is a friend of boy and boy is a friend of house, is dog a friend of house?

0 Answers  


What is pointer in c++ with example?

0 Answers  


Categories