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 |
Do the names of parameters have to agree in the prototype, definition, and call to the function?
Can we sort map in c++?
What are destructors?
Does std endl flush?
What is Object Oriented programming.what is the difference between C++ and C?
class base { public: int fun(int) {} }; class base2 { public: int fun(float) { } }; so here qustion is both function either function overloading or over riding;
Explain the use of virtual destructor?
Why should we use null or zero in a program?
What are the advantages of using pointers in a program?
How do you import payscale data from non SAP to SAP?is it through LSMW or any other way is there?
. If employee B is the boss of A and C is the boss of B and D is the boss of C and E is the boss of D. Then write a program using the Database such that if an employee name is Asked to Display it also display his bosses with his name. For eg. If C is displayed it should also display D and E with C?
what is c++