The code generated for the pure virtual function is shown in Listing 1.
为纯虚函数所生成的代码如列表 1 中所示。
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.
如果某虚函数为私有函数,则派生类型无法访问它。
Virtual Function is the method to realize dynamic polymorphism.
虚函数是实现动态多态性的方法。
Virtual Function is the method to realize dynamic polymorphism.
虚函数是实现动态多态性的方法。
应用推荐