由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - Calling pure virtual method
相关主题
问个 C++到C的问题C++ virtual function 问题
请问2个类的问题虚函数access权限改变问题
C++虚方法问题Can we define pure virtual function? (转载)
[合集] 基类函数已经是virtual了,为啥子类还要virtual啊?machine learning on virtual machine
为什么指向子类对象的基类指针能访问子类中重载的虚函数,而不子类的copy constructor怎么写
[c++] virtual member?子类的assignment operator 怎么访问父类的private member
[合集] C++ pure virtual function question还请教一个关于C++的问题
[合集] can destructor be pure virtual function in c++?dynamic_cast operator in C++
相关话题的讨论汇总
话题: virtual话题: pure话题: method话题: calling话题: defined
进入Programming版参与讨论
1 (共1页)
c**********e
发帖数: 2007
1
1. Is it possible to call a pure virtual method that has not been defined?
2. Is it possible to call a pure virtual method that has been defined?
b***i
发帖数: 3043
2
我问你个更高深的问题吧
可不可以给基类定义纯虚函数,而在动态库中定义子类来实现这个虚函数,编译成功并
且运行程序,动态调入子类所继承的基类虚函数呢?

【在 c**********e 的大作中提到】
: 1. Is it possible to call a pure virtual method that has not been defined?
: 2. Is it possible to call a pure virtual method that has been defined?

1 (共1页)
进入Programming版参与讨论
相关主题
dynamic_cast operator in C++为什么指向子类对象的基类指针能访问子类中重载的虚函数,而不
C++子类中调用父类指针的问题[c++] virtual member?
[合集] 问一个design pattern的问题[合集] C++ pure virtual function question
[合集] 关于vector存储value copy的一个问题[合集] can destructor be pure virtual function in c++?
问个 C++到C的问题C++ virtual function 问题
请问2个类的问题虚函数access权限改变问题
C++虚方法问题Can we define pure virtual function? (转载)
[合集] 基类函数已经是virtual了,为啥子类还要virtual啊?machine learning on virtual machine
相关话题的讨论汇总
话题: virtual话题: pure话题: method话题: calling话题: defined