How Virtual functions call up is maintained?
Answers were Sorted based on User's Feedback
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 |
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 |
What is singleton class in c++?
Define a pointer to a data member of the type pointer to pointer?
Can circle be called an ellipse?
How do you show the declaration of a virtual constructor?
Why struct is used in c++?
Which algorithm do you like the most? Why?
Write a c++ code that will calculate the roots of a quadratic equation a2+ bx+c=0 Hint: d = sqrt (b2-4ac), and the roots are: x1 = (€“b + d)/2a and x2 = (€“b €“ d)/2a (use sqrt function from cmath.h )?
Eplain extern keyword?
What's the hardest coding language?
Assume studentNames and studentIDs are two parallel arrays of size N that hold student data. Write a pseudocode algorithm that sorts studentIDs array in ascending ID number order such that the two arrays remain parallel.
Write a program in c++ to print the numbers from n to n2 except 5 and its multiples
What are destructors?