1.  >>  高等教育 / 计算机可视化编程
 高等教育 / 计算机可视化编程

有如下类声明,则类MyDERIVED中保护的数据成员和成员函数的个数是( )。
class MyBASE
{ private: int k;
public: void set(int n){ k=n;}
int get( )const{ return k;} };
class MyDERIVED: protected MyBASE
{ protected: int j;
public: void set(int m, int n){ MyBASE::set(m); j=n;}
int get( ) const { return MyBASE::get( )+j; } };

A、4
B、3
C、2
D、1
 参考答案:
 佳题速递:
  • [单选题] 自然式园林的花卉布置以()为主 A.模纹花坛 B.盛花花坛 C.花境 D.模纹花坛和花境园林植物学
  • (单选题) – He must be a top student in his school.  – A、I have doubt.B、There is no doubt about it.C、Yes. No doubt.D、It is not doubtful.英语(二)
  • (单选题) _ _ _ _ _ _ _ _ is known to us all is that the old doctor, for _ _ _ _ _ _ _ _ life was hard in the past, still works very hard in his late life. ( ) A、As; whomB、What; whomC、It; whoseD、As; whose大学英语(一)
  • [单选题] 与横轴平行的劳动力需求曲线的劳动力需求弹性为( )。 A.无弹性 B.无限弹性 C.富有弹性 D.缺乏弹性劳动经济学
  • 质量成本包括预防成本、评估成本、内部失败成本、内部失败成本。项目管理
  • [名词解释题] 自助体位转换 康复医学