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 |
When the constructor of a base class calls a virtual function, why doesn't the override function of the derived class gets called?
What is the latest c++ standard?
What is function overloading c++?
What is the C-style character string?
What is Object Oriented programming.what is the difference between C++ and C?
Does there exist any other function which can be used to convert an integer or a float to a string?
string somestring ; Which of the following choices will convert a standard C++ string object "somestring" to a C string? a) Copy.somestring () ; b) somestring.c_str () c) &somestring [1] d) std::cstring (somestring) e) (char *) somestring
Write a program to calculate the BMI of a person using the formula BMI = weight/height2.
what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?
Which c++ operator cannot overload?
Does c++ cost money?
What are the basics of local (auto) objects?