王老师:19139051760(微信同号)  13333709510
联大   青书学堂   文才   和学   现代兴业   安徽教育在线   超星   弘成   广东开放大学   国家开放大学   上海开放大学   含弘慕课 

教育服务

成人高校
成考录取分数线
我要提升学历
提升学历的理由:
升职加薪、积分落户、考研、公务员考试、子女入学、出国留学


成人高考报名入口

当前位置: 首页 > 联大系统 > 河南财经政法大学> 河南财经大学数据库基础与应用
 

输入试题:
本题添加时间:2024/9/3 9:06:00
圆梦客服:王老师  19139051760(微信同号)  19139051760(微信同号)
下面程序的运行结果如下:

B::display()

C::display()

在下划线处填上缺少的部分。源程序如下:

#include

using namespace std;

class B

{

public:

_______display( ) {cout << "B::display( ) "<
};

class C:public B

{

public:

void display(){cout<<"C::display()"<
};

void fun(B*p)

{

p->display();

}

void main()

{

B b,*pb;

C c;

pb=&b;

fun(pb);

pb=&c;

fun(pb);

}

答案是:virtual void


出自 河南财经大学数据库基础与应用  联大系统

河南财经政法大学

更多试题>>>>
1、#include using namespace std; class base { private:int x; public:base(int a){x=a;} int get(
2、完成下面程序,使其输出l0,并在退出运行时正确释放分配给指针的存储空间。 #include using namespace std; void main() { int *a,*p; a=new int(
3、给出下面程序的输出结果 #include using namespace std; class Simple { int x,y; public: Simple(){x=y=
4、给出下面程序的输出结果 #include using namespace std; void main() { int num=300; int &ref=num;
5、静态成员函数没有( ) A.返回值 B.this指针 C.指针参数 D.返回类型


提升学历-成人高考报名入口 提升学历-成人高考院校名单