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 |
Is it possible to write a c++ template to check for a function's existence?
what is polymorphism?
What is the this pointer?
Explain the difference between struct and class in terms of access modifier.
Write a corrected statement in c++ so that the statement will work properly. if (x = y) x = 2*z;
Explain register storage specifier.
Disadvantages of c++
What is the difference between while and do while loop? Explain with examples.
Can we make any program in c++ without using any header file and what is the shortest program in c++.
When does a 'this' pointer get created?
If dog is a friend of boy and boy is a friend of house, is dog a friend of house?
What is pointer in c++ with example?