注意:此页面搜索的是所有试题
题目内容
(东北林业大学-高级语言程序设计)
(问答题) 阅读程序,给出运行结果
class A
{ public:
A ( ){cout<<"constructing A "<<endl;}};
class B: public A
{ public:
B( ){cout<<"constructing B "<<endl;}};
int main()
{ B b1;
return 0;
}
在此处作答:
class A
{ public:
A ( ){cout<<"constructing A "<<endl;}};
class B: public A
{ public:
B( ){cout<<"constructing B "<<endl;}};
int main()
{ B b1;
return 0;
}
在此处作答:
参考答案