单选题 C++
题号 #2657089

有如下类定义:
class MyBASE{
    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;}
};
则类MyDERIVED中保护成员个数是(  )。

进入在线模考

参考答案

B

答案解析

略

你可能感兴趣的试题

找试题 · 找答案 · 找资料 在线模考