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 are the advantages of inheritance in c++?
What are shallow and deep copies?
What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?
What is the difference between C and CPP?
What is extern c++?
Explain all the C++ concepts using examples.
What is type of 'this' pointer?
What is the difference between while and do while loop? Explain with examples.
Give example of a pure virtual function in c++?
Brief explaination about #include<iostream.h>, cin and cout
What are the differences between a struct in C and in C++?
What is a syntax in c++?