中级农民
- 积分
- 102
- 大米
- 颗
- 鳄梨
- 个
- 水井
- 尺
- 蓝莓
- 颗
- 萝卜
- 根
- 小米
- 粒
- 学分
- 个
- 注册时间
- 2010-12-1
- 最后登录
- 1970-1-1
|
C++ objs contain only data members and a vptr if needed. The vptr points to a vtable which stores virtual function addresses.
So when a virtual function is called, the actual function address is evaluated from the obj's vtable and control jumps over there with the obj as a "this" parameter.
|
|