Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How the V-Table mechanism works?

Answer Posted / ramesh

V-table is specific to class. No matter how many objects
are created for this class, only one virtual table exists.
Each virtual function in the class will have a pointer in
Vtable.

Whenever a code like Base *b = new Derived; is encountered,
during compile time the search will happen in Base class.
Its only during run time the actual objects are invoked and
the fucntion present in derived class will be called.

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a c++ class?

1151


What is encapsulation in C++? Give an example.

1152


What is general format for a prototype?

1092


What is the main function c++?

1172


What is scope operator in c++?

1131


What is flush programming?

1058


What's the most powerful programming language?

1094


Write a program to find the Fibonacci series recursively.

1112


What is prototype for that c string function?

1192


What is c++ used for in games?

1238


What is expression parser in c++

2560


Is dev c++ a good compiler?

1014


Give 10 points of differences between C & C++.

1187


What do you mean by global variables?

1123


List the merits and demerits of declaring a nested class in C++?

1080