How the V-Table mechanism works?

Answer Posted / nishikant sahu

V-Table holds the addresses of virtual functions of a class
and type_info structure for RTTI.V-table created class basis.
when an object created compiler secretly inserted the
v-table pointer of the respective class and then Vptr
iterator accordingly. all are done under the hood.

Is This Answer Correct ?    21 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the advantage of c++ over c?

739


Can a function take variable length arguments, if yes, how?

751


Do you know what are pure virtual functions?

841


What is flush c++?

708


Is swift faster than c++?

744






Explain binary search.

783


What is stl containers in c++?

759


Is facebook written in c++?

738


Why we use #include iostream in c++?

752


What is a .lib file in c++?

739


What is the use of "new" operator?

862


Define a pointer to a data member of the type pointer to pointer?

744


What number of digits that can be accuratly stored in a float (based on the IEEE Standard 754)? a) 6 b) 38 c) An unlimited number

993


In int main(int argc, char *argv[]) what is argv[0] a) The first argument passed into the program b) The program name c) You can't define main like that

818


Differentiate between a constructor and a destructor in c++.

755