单选题 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

答案解析

暂无解析

你可能感兴趣的试题

找试题 · 找答案 · 找资料 在线模考