How Virtual functions call up is maintained?
Answers were Sorted based on User's Feedback
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 |
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 |
What is a base class?
how to connect with oracle 9i with server in socket program in c/c++
What is the Difference between "C structure" and "C++ structure"?
How would you differentiate between a pre and post increment operators while overloading?
Definition of class?
what is polymorphism?
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\"; } };
Can we have "Virtual Constructors"?
How can you specify a class in C++?
What's the best free c++ profiler for windows?
What apps are written in c++?
How can a '::' operator be used as unary operator?