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 you find out if a linked-list has an end?

639


How would you use the functions sin(), pow(), sqrt()?

734


What are the three forms of cin.get() and what are their differences?

618


Please explain the reference variable in c++?

611


What are c++ storage classes?

612






Can we use struct in c++?

580


Comment on c++ standard exceptions?

628


Differentiate between C and C++.

703


What is c++ vb?

602


What are advantages of c++?

550


How does com provide language transparency?

596


What is a hash function c++?

546


Do class method definitions?

580


Do you know what are static and dynamic type checking?

612


How does a copy constructor differs from an overloaded assignment operator?

548