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 difference between array and vector in c++?
How do I write a c++ program?
Out of fgets() and gets() which function is safe to use?
What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.
How does the copy constructor differ from the assignment operator (=)?
What is the use of "new" operator?
Can you write a function similar to printf()?
What is the use of ::(scope resolution operator)?
What is a mutex and a critical section.Whats difference between them?How do each of them work?
How to defines the function in c++?
What are the basic data types used in c++?
What is endianness?