Virtual Table C++

后端 未结 4 1666
既然无缘
既然无缘 2020-12-24 03:04

I read a lot of people writing \"a virtual table exists for a class that has a virtual function declared in it\".

My question is, does a vtable exists only for a cla

4条回答
  •  醉梦人生
    2020-12-24 03:37

    Yes, your understanding is correct. Any class that has a base with any virtual functions has a vtable.

提交回复
热议问题