How Virtual functions call up is maintained?

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


Please Help Members By Posting Answers For Below Questions

How do we implement inheritance in c++?

689


What is a literal in c++?

655


What is meaning of in c++?

762


How to tokenize a string in c++?

691


what is a reference variable in C++?

749






What is iterator c++?

632


What is function prototyping?

707


What is heap sort in c++?

709


What is iterator in c++?

708


What is rtti in c++?

709


What do you mean by function overriding & function overloading in c++?

687


Difference between inline functions and macros?

673


What does the linker do?

690


What is a .lib file in c++?

645


What is operators in c++?

669