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 are the advantages of inheritance in c++?

0 Answers  


What are shallow and deep copies?

0 Answers  


What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?

0 Answers  


What is the difference between C and CPP?

0 Answers   iNautix,


What is extern c++?

0 Answers  


Explain all the C++ concepts using examples.

0 Answers   InterGraph,


What is type of 'this' pointer?

0 Answers  


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

0 Answers  


Give example of a pure virtual function in c++?

0 Answers  


Brief explaination about #include<iostream.h>, cin and cout

3 Answers  


What are the differences between a struct in C and in C++?

8 Answers   Amazon, Wipro,


What is a syntax in c++?

0 Answers  


Categories