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

Write bites in Turbo c++ Header ("Include") Files.

688


What is the difference between delegation and implemented-in-terms-of?

525


Define the operators that can be used with a pointer.

575


What is the meaning of c++?

546


Which is the best c++ compiler for beginners?

562






Is c++ the best programming language?

542


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

790


What does extern mean in a function declaration in c++?

704


Explain the virtual inheritance in c++.

601


what is oops and list its features in c++?

551


In what situations do you have to use initialization list rather than assignment in constructors?

636


What is a down cast?

613


What is the default width for ouputting a long integer using the insertion operator?

693


Can we declare a base-class destructor as virtual?

586


What are activex and ole?

547