单项选择题
下列说法中错误的是( )。
A) 公有继承时基类中的public成员在派生类中仍是public的
B) 公有继承时基类中的private成员在派生类中是Dublic的
C) 私有继承时基类中的public成员在派生类中是private的
D) 保护继承时基类中的public成员在派生类中是protected的
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
下列程序的输出结果是( )。 #include<iostream.h> void ff(int x),ff(double x); void main() float a(88.18); if(a); char b('a'); if(b); void ff(int x) cout<< ff(int): <<x<<end1; void if(double x) cout<< ff(double): <<x<<end1;
点击查看答案&解析
单项选择题
以下程序输出结果是( ): #include<iostream> using namespace std; void add(int x,int y,int *z) *z=y+x; int main() int a,b,c; add(8,4,&a); add(6,a,&b); add(a,b,&c); cout<<a<< , <<b<< , <<c<<end1; return 0;
A) 12, 10, 14
B) 12, 18, 30
C) 12, 6, 18
D) 12, 14, 30
点击查看答案&解析
相关试题
为了取代C中带参数的宏,在C++中使用( ...
有如下类声明: class Foointbar;; 则...
有如下程序: #include<iostream> usi...
下列程序中横线处正确的语句是( )。 #...
有如下程序: #include<iostream> usi...