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 is a base class?

0 Answers  


how to connect with oracle 9i with server in socket program in c/c++

0 Answers   3i Infotech,


What is the Difference between "C structure" and "C++ structure"?

12 Answers  


How would you differentiate between a pre and post increment operators while overloading?

0 Answers  


Definition of class?

12 Answers  






what is polymorphism?

14 Answers   Accenture,


What is the output of this prog. ? struct A { A(){ cout << \"A\"; } }; struct B { B(){ cout << \"B\"; } }; struct C { C(){ cout << \"C\"; } }; struct D { D(){ cout << \"D\"; } }; struct E : D { E(){ cout << \"E\"; } }; struct F : A, B { C c; D d; E e; F() : B(), A(),d(),c(),e() { cout << \"F\"; } };

2 Answers  


Can we have "Virtual Constructors"?

10 Answers   TCS,


How can you specify a class in C++?

0 Answers  


What's the best free c++ profiler for windows?

0 Answers  


What apps are written in c++?

0 Answers  


How can a '::' operator be used as unary operator?

1 Answers  


Categories