How does virtual method invocation work in C++?

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

How does Virtual Method Invocation work in C++?

4条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-30 14:43

    Every class with at least one virtual method has it's virtual table - table of pointers to functions that are that class's methods.

    It's extensively used in COM.

提交回复
热议问题