单项选择题

通过公有派生类的对象,只能访问基类成员中的

A.公有成员
B.私有成员
C.保护成员
D.公有成员和保护成员
<上一题 目录 下一题>
热门 试题

单项选择题
有如下程序: #include<iostream.h> using namespace std; class Demo public: Demo() cont<< default constructor n ; Demo(const Demo &x) cont<< copy constructor n ; ; Demo userCode(Demo b)Demo c(b);return c; int main() Demo a,d; cout<< calling userCode() n ; d=userCode(
A.;
&n
填空题
在下面函数的横线处填上适当的内容,使该函数能够利用递归方法求解字符串str的长度 (不得使用系统提供的字符串处理函数)。 int GetLen(char*str) if(______)return ______; else return 1+GetLen(str+1);
相关试题
  • 下列程序的输出结果为2,请将程序补充完整...
  • 下列程序的输出结果是______。 #in...
  • ______允许用户为类定义一种模式,使...
  • 以下函数模板max()的功能是:返回数组a中...
  • 派生类中的成员不能直接访问基类中的___...