How Virtual functions call up is maintained?

Answers were Sorted based on User's Feedback



How Virtual functions call up is maintained?..

Answer / 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

How Virtual functions call up is maintained?..

Answer / guest

By using Look up tables that were added by the compile to
every class image.

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More C++ General Interview Questions

What is difference between array and vector in c++?

0 Answers  


How do I write a c++ program?

0 Answers  


Out of fgets() and gets() which function is safe to use?

0 Answers  


What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.

0 Answers  


How does the copy constructor differ from the assignment operator (=)?

0 Answers  


What is the use of "new" operator?

0 Answers  


Can you write a function similar to printf()?

0 Answers  


What is the use of ::(scope resolution operator)?

0 Answers  


What is a mutex and a critical section.Whats difference between them?How do each of them work?

4 Answers   CTS,


How to defines the function in c++?

0 Answers  


What are the basic data types used in c++?

0 Answers  


What is endianness?

0 Answers  


Categories