Module 0074: Methods under the hood (meth in the hood)
Tak Auyeung, Ph.D.
November 9, 2006
1
About this module
2
Non-polymorphic classes
2.1
Equivalent C code
2.2
Bottom line
3
Polymorphic classes
3.1
C equivalent code
3.1.1
vtable
3.1.2
The structs
3.1.3
pVtable initialization
3.1.4
Regular virtual method invocation
3.1.5
Inherited virtual method invocation
3.1.6
Static up cast
3.1.7
Sticky methods from a superclass pointer
3.1.8
Dynamic down cast
3.1.9
Method invocation via pointer
3.1.10
Making the compiler happy
3.2
How about multiple inheritance?
3.3
How about multilevel inheritance?
[
next
]