主观

程序的运行结果为:12

#include ﹤iostream﹥

using namespace std;

class Base

{

 public:

int a;Base (int i)

 {

 a=i;

}

};

class Derived:

public Base

{

int a;

public:

Derived(int x):

Base(x) { }

void show( )

{

_________; //输出基类数据成员a的值

}

};

void main( }

{_________d. show ( );

}

参考答案
您可能感兴趣的试题
¥

订单号:

遇到问题请联系在线客服

订单号:

遇到问题请联系在线客服