单选题:有如下类声明: classMyBASE{ intk; public: voidset(intn){k=n;} intge

  • 题目分类:C++
  • 题目类型:单选题
  • 号外号外:关注公众号送1000体验阅读点!
题目内容:
有如下类声明:
classMyBASE{
intk;
public:
voidset(intn){k=n;}
intget()const{returnk;}
};
classMyDERIVED:protectedMyBASE{
protected:
intj;
public:
voidset(intm,intn){MyBASE::set(m);j=n;}
intget()const{returnMyBASE::get()+j;}
};
则类MyDERIVED中保护的数据成员和成员函数的个数是(  ) A.4
B.3
C.2
D.1
关注公众号,送1000阅读点
关注公众号,送1000阅读点
1:点击图片或者扫二维码进入公众号,关注公众号!
2:私信发送您在66题库注册的会员号!
3:在一个小时内,您将收到充值卡
4:到点卡充值输入充值卡内容即可!
5:多关注多得!免费的呦!只要本站不倒闭,永久有效!
参考答案:【答案仅供学习,请勿对照自行用药等】
答案解析:

“Salty”Rice Plant Boosts Harvests British scientists are bre

“Salty”Rice Plant Boosts Harvests British scientists are breeding a new generati

查看答案

Which country is the largest coffee producer?

Which country is the largest coffee producer?A.Brazil B.Colombia C.Ethiopia D.Eg

查看答案

“some” in the last sentence of the first paragraph refers to

“some” in the last sentence of the first paragraph refers toA.some cocoa trees B

查看答案

设有如下关系表: 则下列操作中正确的是(  )

设有如下关系表: 则下列操作中正确的是(  )A.T=R∩S B.T=R∪S C.T=R×S D.T=R/S

查看答案

Henry Manley had no idea at all why George Strong wanted to

Henry Manley had no idea at all why George Strong wanted to see him. A.right B.W

查看答案