在下列横线处应添加的语句是( )。 class Base{public:void fun(){cout<<"Base::fun"<<end1;}}; class: Derived: public Base { public:

admin2013-02-27  20

问题 在下列横线处应添加的语句是(    )。    class Base{public:void fun(){cout<<"Base::fun"<<end1;}};    class: Derived: public Base    {    public:    void fun()     {      ______//显示调用基类的fun函数     cout<<"Derived::fun"<<end1;     }    };

选项 A、Derived::fun
B、Base::fun();
C、Pubic::fun
D、fun();

答案B

解析
转载请注明原文地址:https://kaotiyun.com/show/haVp777K
0

最新回复(0)