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

Which is better turbo c++ or dev c++?

0 Answers  


What is enum c++?

0 Answers  


Can you please explain the difference between overloading and overriding?

0 Answers  


What are the two main components of c++?

0 Answers  


What do you mean by stack unwinding in c++?

0 Answers  






Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list

0 Answers  


What is encapsulation in C++? Give an example.

0 Answers   HAL, Honeywell, Zomato,


implement stack using stack.h headerfile functions

1 Answers   Exilant, GMG, Subex, University,


Should I learn c or c++ first?

0 Answers  


what is data Abstraction

2 Answers  


if i want cin 12345678910 and cout abcdefghij. so how can i create the program?. example : if i key in 8910 so the answer is ghij.

3 Answers  


program explaining feautures of c++

0 Answers   Satyam,


Categories