绑定一个抽象虚拟函数 abstract virtual function
为什么使用不能用于定义一个虚函数?。
举例来说,要创建一个虚函数:inline int inlineop (int x),请您执行下述步骤。
For example, to create an inline function such as inline int inlineop (int x), perform these steps.
也许我们认为可以通过定义一个虚函数集合来解决这个问题,这些虚函数可以在类层次中每一层执行相等测试。
We might think we could solve this problem by defining a set of virtual functions that would perform the equality test at each level in the hierarchy.
应用推荐