单选题
C++
题号 #144316
有如下程序:
#include
using namespace std;
class A
{
public;
A(int i ){x= i ;}
Void sispa(){cout < Private:
int x ;
};
class B;publicA
{
public;
B(int i):A(i +10) {x =i ;}
voud dispb() {dispa();cout <<Private:
Int x;
};
int main()
{
B b(2);
b.dispb()
retum 0:
}
运行时输出的结果是( )。
参考答案
C
答案解析
暂无解析
你可能感兴趣的试题
A.f+g+
B.f0+g+
C.f+g0+
D.f0+g0+
A.运行时输出1011
B.运行时输出1111
C.运行时输出1112
D.编译有错