Answer Posted / 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 |
Post New Answer View All Answers
Explain how functions are classified in C++ ?
If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?
How a macro differs from a template?
what is multi-threading in C++?
What is a character in c++?
What is namespace & why it is used in c++?
What are associate containers?
What it is and how it might be called (2 methods).
What happens when the extern "c" char func (char*,waste) executes?
How many static variables are created if you put one static member into a template class definition?
What does I ++ mean in c++?
Define stacks. Provide an example where they are useful.
What is scope in c++ with example?
Are vectors passed by reference c++?
Why is c++ still best?