虚函数简单地向标准输出写一行文本。
The virtual functions simply write a line of text to standard output.
为纯虚函数所生成的代码如列表1 中所示。
The code generated for the pure virtual function is shown in Listing 1.
虚函数是实现动态多态性的方法。
Virtual Function is the method to realize dynamic polymorphism.
是添加虚函数不是成员函数。
这个例子的性能和纯虚函数表例子是相同的。
The performance of this sample and the pure vtable-based sample are exactly identical.
这个函数是一个真正的消息句柄,不是虚函数。
This function is really a message handler, not a virtual function.
首先,你应该知道什么是虚函数,以及如何使用它。
Firstly, you should know what a virtual function is, and how to use it.
如果某虚函数为私有函数,则派生类型无法访问它。
If a virtual function is private, it cannot be accessed by a derived type.
如果某虚函数为私有函数,则派生类型无法访问它。
If a virtual function is private, it cannot be accessed by a derived type.
应用推荐