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
What is a c++ class?
What is encapsulation in C++? Give an example.
What is general format for a prototype?
What is the main function c++?
What is scope operator in c++?
What is flush programming?
What's the most powerful programming language?
Write a program to find the Fibonacci series recursively.
What is prototype for that c string function?
What is c++ used for in games?
What is expression parser in c++
Is dev c++ a good compiler?
Give 10 points of differences between C & C++.
What do you mean by global variables?
List the merits and demerits of declaring a nested class in C++?