首页 > 题库 > 学历提升 > 自学考试 > 自考本科 > 填空题

程序的输出结果为: 1234
class A{
private: int X,Y;
protected:int Z;
public:
A(int a, int b, intc){ X=a; Y=b; Z=c;}
int GetX() { returm X; }
int GetY() { returm Y; }
};
class B:public A{
private: int K;
public:
B(int a,int b,int c,int d): A(a,b,c) { K=d;}
void Show) { cout<<GetX()<<GetY()<<Z<<K<<endl; };
int main(
B b(1,2,3,4);
________________;
return 0;
}


参考答案: 查看答案 查看解析 下载APP畅快刷题

相关知识点试题

相关试卷