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 does flush do c++?
What are the effects after calling the delete this operator ?
Name the operators that cannot be overloaded in C++?
What is singleton pattern in c++?
What should main() return in c and c++?
Explain how the virtual base class is different from the conventional base classes of the opps.
What are the extraction and insertion operators in c++?
What is a base class?
What are static variables?
What is data type in c++?
What jobs can you get with a c++ certification?
What is the difference between map and hashmap in c++?
What is a modifier in c++?
What is searching?
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?