Questions tagged [vmt]
18 questions
0
votes
1 answer
How to determine count of VMT pointers
using Visual C++ compiler every class object have VMT ( first pointer in object) which is the pointer to array of pointers to every method in class. Using code like this:
TestObject * object = new TestObject();
void** VMT = (void**)object;
int…

Kracken
- 662
- 1
- 11
- 27
0
votes
1 answer
Virtual Method Table on Free Pascal
What I'm trying to do is to get the list of fields in a class without an instance... for example:
TAClass=class
a_: Integer;
b_: Integer;
constructor (a,b Integer);
end;
I'm not being able to get the fieldTable from the VMT:
ovmt: PVmt;
ftable:…

Federico
- 1
-1
votes
1 answer
Different polymorphic behavior example, C++ vs. C#
I tried the following example in C++. I understood that redefining Method4() from CA class, with Method4(int a) in CB, hides Method4() only from the visibility point of view, not from VMT perspective. Therefor, the first 2 calls in Main function are…

oopEnthusiast
- 1
- 1