| | |
vtable
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jul 2005
Posts: 1
Reputation:
Solved Threads: 0
Hi all,
What is vtable ?
How many vtables created for this sample.
<< moderator edit: added [code][/code] tags >>
What is vtable ?
How many vtables created for this sample.
C++ Syntax (Toggle Plain Text)
class A { virtual void myFunc() = 0; }; class B : public A { virtual void myFunc() = 0; }; class C: pulibc B { void myFunc() { cout <<"MyFunc"<<endl; } }; void main(void) { C c; c.myFunc(); }
>What is vtable ?
A fancy term for an array of function pointers.
>How many vtables created for this sample.
Maybe none. The virtual mechanism doesn't have to be implemented using the vtable concept. However, if it did, the answer would probably be one, but it's implementation-defined.
A fancy term for an array of function pointers.
>How many vtables created for this sample.
Maybe none. The virtual mechanism doesn't have to be implemented using the vtable concept. However, if it did, the answer would probably be one, but it's implementation-defined.
I'm here to prove you wrong.
![]() |
Similar Threads
- C++ Performance Tips (C++)
- Virtual constructor (C)
- How do I work around this? - virtual templates (C++)
- Linker Error in derived class initialization (C++)
- undefined reference errors when using C++ Sockets Library (C++)
- How to avoid the situation (C)
- Quick Polymorphism Tutorial (C)
Other Threads in the C++ Forum
- Previous Thread: problem when trying to use a copy constuctor
- Next Thread: copy constructor problem
| Thread Tools | Search this Thread |
api array based beginner binary bitmap c++ c/c++ calculator char char* class classes coding compile compiler console conversion convert count data database delete desktop developer directshow dll dynamiccharacterarray email encryption error file forms fstream function functions game getline google graph homeworkhelper iamthwee ifstream input int integer java lib linkedlist linux list loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct template templates test text tree unix url vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






