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

What is the use of turbo c++?

551


What is endianness?

620


Why can templates only be implemented in the header file?

659


If you push the numbers (in order) 1, 3, and 5 onto a stack, which pops out first a) 1 b) 5 c) 3

838


Which software is best for coding?

572






Differentiate between the manipulator and setf( ) function?

594


Write a program to find the Fibonacci series recursively.

608


What is a down cast?

611


Define pre-condition and post-condition to a member function in c++?

661


What do you mean by const correctness?

627


Explain the difference between c++ and java.

642


What should main() return in c and c++?

527


Why do you use the namespace feature?

648


When should we use container classes instead of arrays?

583


Name the debugging methods that are used to solve problems?

581