pure virtual function(虚函数)

Posted diamondDemand

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了pure virtual function(虚函数)相关的知识,希望对你有一定的参考价值。

1. pure virtual function can be achieved, do not have to only declare, not to achieve.
2. even if the pure virtual function has been achieved, with pure virtual function of the class is still abstract class, not instantiation, this is the c++ standard

以上是关于pure virtual function(虚函数)的主要内容,如果未能解决你的问题,请参考以下文章

C++ 虚函数 (virtual function)

C++中的虚函数解析[The explanation for virtual function of CPlusPlus]

C++中是否每个类(有虚函数)都对应一个virtual function table?

Runtime Error! R6025-pure virtual function call

Runtime Error! R6025-pure virtual function call 问题怎么解决

为啥 g++ 不关注虚函数的 __attribute__((pure)) ?