单选题 C++
题号 #145117

有如下类声明: 
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

答案解析

暂无解析

你可能感兴趣的试题

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