Explain the use of vtable.
Answer / Vimal Kumar Singh
A vtable (Virtual Table) is a data structure used by C++ to store addresses of virtual functions. Each object instance in memory has its own vtable that points to the methods for that specific class or base class, allowing polymorphism and runtime binding in C++.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain the operation of overloading of an assignment operator.
What is a "RTTI"?
What is #include iostream h in c++?
What are the types of array in c++?
Can we distribute function templates and class templates in object libraries?
What is Namespace?
What is virtual table?
What is static function and static class?
Can I learn c++ without knowing c?
Define what is constructor?
If dog is a friend of boy and boy is a friend of house, is dog a friend of house?
Why null pointer is used?