How does virtual method invocation work in C++?

前端 未结 4 1503
隐瞒了意图╮
隐瞒了意图╮ 2020-11-30 14:38

How does Virtual Method Invocation work in C++?

4条回答
  •  自闭症患者
    2020-11-30 14:43

    With VTables and function pointers. Virtual functions' function pointer will be listed in VTable
    MFC is using Message Map instead of Virtual function, which reduces the size limitation. If we use several virtual function VTable will end up with big size.

提交回复
热议问题