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 |
Describe about storage allocation and scope of global, extern, static, local and register variables?
What is the role of static keyword for a class member variable?
How do you clear a map in c++?
Explain RAII (Resource Acquisition Is Initialization).
What are pointer-to-members in C++? Give their syntax.
Show the declaration for a pointer to function returning long and taking an integer parameter.
What is a responder chain?
Explain virtual destructor?
Why cstdlib is used in c++?
What is c++ prototype?
what is the emaning of '#include" "'?
What is difference between rand () and srand ()?