题目内容:
在下列横线处应添加的语句是( )。class Base {public:void fun(){cout<<"Base::fun"<<endl;}};
class Derived:public Base
{
public:
void fun()
{
//显示调用基类的fun函数
cout<<"Derived::fun"<<endl;
}}; A.Derived::fun
B.Base::fun();
C.Pubic::fun
D.fun();
参考答案:
答案解析: