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
What is the use of bit fields in structure declaration?
what are the decision making statements in C++? Explain if statement with an example?
Why can’t you call invariants() as the first line of your constructor?
Why c++ is created?
What is istream and ostream in c++?
Can malloc be used in c++?
What is private public protected in c++?
What do you mean by a template?
Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?
How do you write a function that can reverse a linked-list?
Why do we use the using declaration?
What is insertion sorting?
what is the use of void main() in C++ language?
What is an undefined reference/unresolved external symbol error and how do I fix it?
Explain shallow copy?