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 |
if int1 has the value 12, int has the value 18, and int3 has the value 21, what is the result: int1 < int2 && int2 < int 3
Using a smart pointer can we iterate through a container?
What are the 2 main types of data structures?
What is vector string in c++?
Will the following program execute?
What is name hiding in c++?
What do you mean by Stack unwinding?
Can we delete this pointer in c++?
What are the various operations performed on stack?
Explain differences between alloc() and free()?
How does java differ from c and c++?
Explain all the C++ concepts using examples.