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

Where are setjmp and longjmp used in c++?

0 Answers  


Write a c program for binary addition of two 8 bit numbers.

0 Answers   TCS,


Who discovered c++?

0 Answers  


What is the prototype of printf function?

0 Answers  


What character terminates all character array strings a) b) . c) END

0 Answers  






What is std::move?

1 Answers  


Write a program using merge () function to combine the elements of array x[ ] and y[ ] into array z[ ].

0 Answers  


What is dynamic and static typing?

0 Answers  


Mention the ways in which parameterized can be invoked. Give an example of each.

0 Answers  


What is the word you will use when defining a function in base class to allow this function to be a polimorphic function?

0 Answers  


Is swift faster than c++?

0 Answers  


What are the different types of Storage classes?

5 Answers  


Categories